Package com.adaptris.jmx.remote.jms
Class ExtendedJmsInvokerServiceExporter<S extends javax.jms.Destination>
- java.lang.Object
-
- org.springframework.remoting.support.RemotingSupport
-
- org.springframework.remoting.support.RemoteExporter
-
- org.springframework.remoting.support.RemoteInvocationBasedExporter
-
- org.springframework.jms.remoting.JmsInvokerServiceExporter
-
- com.adaptris.jmx.remote.jms.ExtendedJmsInvokerServiceExporter<S>
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.beans.factory.InitializingBean
,org.springframework.jms.listener.SessionAwareMessageListener<javax.jms.Message>
public abstract class ExtendedJmsInvokerServiceExporter<S extends javax.jms.Destination> extends org.springframework.jms.remoting.JmsInvokerServiceExporter
OverridesJmsInvokerServiceExporter.writeRemoteInvocationResult
so we can derive the replyTo from a StringProperty.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FALLBACK_REPLY_TO_KEY
protected org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description ExtendedJmsInvokerServiceExporter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract S
createReplyTo(java.lang.String name, javax.jms.Session session)
protected javax.jms.Destination
getReplyTo(javax.jms.Message request, javax.jms.Session session)
protected void
writeRemoteInvocationResult(javax.jms.Message requestMessage, javax.jms.Session session, org.springframework.remoting.support.RemoteInvocationResult result)
-
Methods inherited from class org.springframework.jms.remoting.JmsInvokerServiceExporter
afterPropertiesSet, createResponseMessage, onInvalidRequest, onMessage, readRemoteInvocation, setIgnoreInvalidRequests, setMessageConverter
-
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
-
-
-
-
Field Detail
-
FALLBACK_REPLY_TO_KEY
public static final java.lang.String FALLBACK_REPLY_TO_KEY
- See Also:
- Constant Field Values
-
log
protected final transient org.slf4j.Logger log
-
-
Method Detail
-
writeRemoteInvocationResult
protected void writeRemoteInvocationResult(javax.jms.Message requestMessage, javax.jms.Session session, org.springframework.remoting.support.RemoteInvocationResult result) throws javax.jms.JMSException
- Overrides:
writeRemoteInvocationResult
in classorg.springframework.jms.remoting.JmsInvokerServiceExporter
- Throws:
javax.jms.JMSException
-
getReplyTo
protected javax.jms.Destination getReplyTo(javax.jms.Message request, javax.jms.Session session) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
createReplyTo
protected abstract S createReplyTo(java.lang.String name, javax.jms.Session session) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-