|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.RemoteExporter |
|---|
logger |
| Constructor Summary | |
|---|---|
JmsServiceExporterMessageListener()
|
|
JmsServiceExporterMessageListener(Object proxy)
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected Object |
createRemoteProxy(Message message,
Class parameterType,
Object argument)
|
protected Message |
createResponseMessage(Session session,
Message message,
org.springframework.remoting.support.RemoteInvocationResult result)
Creates the invocation result response message |
void |
destroy()
|
protected void |
doInvoke(Message message,
org.springframework.remoting.support.RemoteInvocation invocation)
|
String |
getClientID()
|
ConnectionFactory |
getConnectionFactory()
|
org.springframework.remoting.support.RemoteInvocationFactory |
getInvocationFactory()
|
Marshaller |
getMarshaller()
|
MetadataStrategy |
getMetadataStrategy()
|
JmsProducerConfig |
getProducerConfig()
|
Object |
getProxy()
|
Requestor |
getResponseRequestor()
|
protected void |
introduceRemoteReferences(LingoInvocation invocation,
Message requestMessage)
Lets replace any remote object correlation IDs with dynamic proxies |
boolean |
isIgnoreFailures()
|
boolean |
isPersistentDelivery()
|
protected void |
onException(Message message,
JMSException e)
Handle the processing of an exception when processing an inbound messsage |
void |
onMessage(Message message)
|
void |
setClientID(String clientID)
Sets the JMS connections unique clientID. |
void |
setConnectionFactory(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(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, isRegisterTraceInterceptor, setRegisterTraceInterceptor, setService, setServiceInterface |
| 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.InitializingBeanExceptionpublic void onMessage(Message message)
onMessage in interface MessageListener
public void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic ConnectionFactory getConnectionFactory()
public void setConnectionFactory(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(Message message,
org.springframework.remoting.support.RemoteInvocation invocation)
throws JMSException
JMSException
protected Message createResponseMessage(Session session,
Message message,
org.springframework.remoting.support.RemoteInvocationResult result)
throws JMSException
session - the JMS session to usemessage - the original request message, in case we want to attach any
properties etc.result - the invocation result
JMSException - if creating the messsage failed
protected void introduceRemoteReferences(LingoInvocation invocation,
Message requestMessage)
throws JMSException
invocation - requestMessage -
JMSException
protected Object createRemoteProxy(Message message,
Class parameterType,
Object argument)
throws JMSException
JMSException
protected void onException(Message message,
JMSException e)
protected void writeRemoteInvocationResult(Message message,
org.springframework.remoting.support.RemoteInvocationResult result)
throws JMSException
message - current HTTP messageresult - the RemoteInvocationResult object
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 | |||||||||