|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.remoting.support.RemotingSupport
org.springframework.remoting.support.RemoteExporter
org.springframework.remoting.support.RemoteInvocationBasedExporter
org.logicblaze.lingo.jms.JmsServiceExporterMessageListener
public class JmsServiceExporterMessageListener
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.
JmsProxyFactoryBean
Field Summary |
---|
Fields inherited from class org.springframework.remoting.support.RemotingSupport |
---|
logger |
Constructor Summary | |
---|---|
JmsServiceExporterMessageListener()
|
|
JmsServiceExporterMessageListener(Object proxy)
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected Object |
createRemoteProxy(javax.jms.Message message,
Class parameterType,
Object argument)
|
protected javax.jms.Message |
createResponseMessage(javax.jms.Session session,
javax.jms.Message message,
org.springframework.remoting.support.RemoteInvocationResult result)
Creates the invocation result response message |
void |
destroy()
|
protected void |
doInvoke(javax.jms.Message message,
org.springframework.remoting.support.RemoteInvocation invocation)
|
String |
getClientID()
|
javax.jms.ConnectionFactory |
getConnectionFactory()
|
org.springframework.remoting.support.RemoteInvocationFactory |
getInvocationFactory()
|
Marshaller |
getMarshaller()
|
MetadataStrategy |
getMetadataStrategy()
|
JmsProducerConfig |
getProducerConfig()
|
Object |
getProxy()
|
Requestor |
getResponseRequestor()
|
protected void |
introduceRemoteReferences(LingoInvocation invocation,
javax.jms.Message requestMessage)
Lets replace any remote object correlation IDs with dynamic proxies |
boolean |
isIgnoreFailures()
|
boolean |
isPersistentDelivery()
|
protected void |
onException(javax.jms.Message message,
javax.jms.JMSException e)
Handle the processing of an exception when processing an inbound messsage |
void |
onMessage(javax.jms.Message message)
|
void |
setClientID(String clientID)
Sets the JMS connections unique clientID. |
void |
setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Used to create a default JmsProducer if no producer is explicitly
configured. |
void |
setIgnoreFailures(boolean ignoreFailures)
Sets whether or not failures should be ignored (and just logged) or thrown as runtime exceptions into the JMS provider |
void |
setInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory invocationFactory)
|
void |
setMarshaller(Marshaller marshaller)
|
void |
setMetadataStrategy(MetadataStrategy metadataStrategy)
|
void |
setPersistentDelivery(boolean persistent)
Sets the delivery mode to be persistent or non-persistent. |
void |
setProducerConfig(JmsProducerConfig producerConfig)
Sets the configuration of the producer used to send back responses |
void |
setResponseRequestor(Requestor responseRequestor)
|
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.springframework.remoting.support.RemoteInvocationBasedExporter |
---|
getRemoteInvocationExecutor, invoke, invokeAndCreateResult, setRemoteInvocationExecutor |
Methods inherited from class org.springframework.remoting.support.RemoteExporter |
---|
checkService, checkServiceInterface, getExporterName, getProxyForService, getService, getServiceInterface, setInterceptors, setRegisterTraceInterceptor, setService, setServiceInterface |
Methods inherited from class org.springframework.remoting.support.RemotingSupport |
---|
getBeanClassLoader, overrideThreadContextClassLoader, resetThreadContextClassLoader, setBeanClassLoader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JmsServiceExporterMessageListener()
public JmsServiceExporterMessageListener(Object proxy)
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void onMessage(javax.jms.Message message)
onMessage
in interface javax.jms.MessageListener
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public javax.jms.ConnectionFactory getConnectionFactory()
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
JmsProducer
if no producer is explicitly
configured.
public Requestor getResponseRequestor()
public void setResponseRequestor(Requestor responseRequestor)
public Marshaller getMarshaller()
public void setMarshaller(Marshaller marshaller)
public org.springframework.remoting.support.RemoteInvocationFactory getInvocationFactory()
public void setInvocationFactory(org.springframework.remoting.support.RemoteInvocationFactory invocationFactory)
public boolean isIgnoreFailures()
public void setIgnoreFailures(boolean ignoreFailures)
public JmsProducerConfig getProducerConfig()
public void setProducerConfig(JmsProducerConfig producerConfig)
public boolean isPersistentDelivery()
public void setPersistentDelivery(boolean persistent)
public String getClientID()
public void setClientID(String clientID)
public Object getProxy()
public MetadataStrategy getMetadataStrategy()
public void setMetadataStrategy(MetadataStrategy metadataStrategy)
protected void doInvoke(javax.jms.Message message, org.springframework.remoting.support.RemoteInvocation invocation) throws javax.jms.JMSException
javax.jms.JMSException
protected javax.jms.Message createResponseMessage(javax.jms.Session session, javax.jms.Message message, org.springframework.remoting.support.RemoteInvocationResult result) throws javax.jms.JMSException
session
- the JMS session to usemessage
- the original request message, in case we want to attach any
properties etc.result
- the invocation result
javax.jms.JMSException
- if creating the messsage failedprotected void introduceRemoteReferences(LingoInvocation invocation, javax.jms.Message requestMessage) throws javax.jms.JMSException
invocation
- requestMessage
-
javax.jms.JMSException
protected Object createRemoteProxy(javax.jms.Message message, Class parameterType, Object argument) throws javax.jms.JMSException
javax.jms.JMSException
protected void onException(javax.jms.Message message, javax.jms.JMSException e)
protected void writeRemoteInvocationResult(javax.jms.Message message, org.springframework.remoting.support.RemoteInvocationResult result) throws javax.jms.JMSException
message
- current HTTP messageresult
- the RemoteInvocationResult object
javax.jms.JMSException
- if thrown by trying to send the message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |