org.logicblaze.lingo.jms
Class JmsTemplateServiceExporter

java.lang.Object
  extended by org.springframework.remoting.support.RemoteExporter
      extended by org.springframework.remoting.support.RemoteInvocationBasedExporter
          extended by org.logicblaze.lingo.jms.JmsServiceExporterMessageListener
              extended by org.logicblaze.lingo.jms.JmsTemplateServiceExporter
All Implemented Interfaces:
javax.jms.MessageListener, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class JmsTemplateServiceExporter
extends JmsServiceExporterMessageListener
implements org.springframework.beans.factory.InitializingBean

A JMS MessageListener that exports the specified service bean as a JMS service endpoint, accessible via a JMS proxy.

Note: JMS services exported with this class can be accessed by any JMS client, as there isn't any special handling involved.

Author:
James Strachan
See Also:
JmsProxyFactoryBean

Field Summary
 
Fields inherited from class org.springframework.remoting.support.RemoteExporter
logger
 
Constructor Summary
JmsTemplateServiceExporter()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.jms.core.JmsTemplate getTemplate()
           
 void setTemplate(org.springframework.jms.core.JmsTemplate template)
          Sets the JMS template used to send replies back for the request
protected  void writeRemoteInvocationResult(javax.jms.Message message, org.springframework.remoting.support.RemoteInvocationResult result)
          Send the given RemoteInvocationResult as a JMS message to the originator
 
Methods inherited from class org.logicblaze.lingo.jms.JmsServiceExporterMessageListener
createRemoteProxy, createResponseMessage, destroy, doInvoke, getClientID, getConnectionFactory, getInvocationFactory, getMarshaller, getMetadataStrategy, getProducerConfig, getProxy, getResponseRequestor, introduceRemoteReferences, isIgnoreFailures, isPersistentDelivery, onException, onMessage, setClientID, setConnectionFactory, setIgnoreFailures, setInvocationFactory, setMarshaller, setMetadataStrategy, setPersistentDelivery, setProducerConfig, setResponseRequestor
 
Methods inherited from class org.springframework.remoting.support.RemoteInvocationBasedExporter
getRemoteInvocationExecutor, invoke, invokeAndCreateResult, setRemoteInvocationExecutor
 
Methods inherited from class org.springframework.remoting.support.RemoteExporter
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, isRegisterTraceInterceptor, setRegisterTraceInterceptor, setService, setServiceInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmsTemplateServiceExporter

public JmsTemplateServiceExporter()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class JmsServiceExporterMessageListener
Throws:
java.lang.Exception

getTemplate

public org.springframework.jms.core.JmsTemplate getTemplate()

setTemplate

public void setTemplate(org.springframework.jms.core.JmsTemplate template)
Sets the JMS template used to send replies back for the request

Parameters:
template - the JMS template to use

writeRemoteInvocationResult

protected void writeRemoteInvocationResult(javax.jms.Message message,
                                           org.springframework.remoting.support.RemoteInvocationResult result)
                                    throws javax.jms.JMSException
Send the given RemoteInvocationResult as a JMS message to the originator

Overrides:
writeRemoteInvocationResult in class JmsServiceExporterMessageListener
Parameters:
message - current HTTP message
result - the RemoteInvocationResult object
Throws:
javax.jms.JMSException - if thrown by trying to send the message


Copyright © 2010 LogicBlaze, Inc.. All Rights Reserved.