|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.remoting.support.RemoteAccessor
org.springframework.remoting.support.UrlBasedRemoteAccessor
org.springframework.remoting.support.RemoteInvocationBasedAccessor
org.logicblaze.lingo.jms.JmsClientInterceptor
Interceptor for accessing a JMS based service which must be configured with a
LingoRemoteInvocationFactory
instance.
RemoteAccessor.setServiceInterface(java.lang.Class)
,
UrlBasedRemoteAccessor.setServiceUrl(java.lang.String)
,
JmsServiceExporter
,
JmsProxyFactoryBean
Field Summary |
Fields inherited from class org.springframework.remoting.support.RemoteAccessor |
logger |
Constructor Summary | |
JmsClientInterceptor()
|
|
JmsClientInterceptor(Requestor requestor)
|
|
JmsClientInterceptor(Requestor requestor,
LingoRemoteInvocationFactory factory)
|
Method Summary | |
void |
afterPropertiesSet()
|
protected MetadataStrategy |
createMetadataStrategy()
Factory method to create a default metadata strategy if none is configured |
protected LingoRemoteInvocationFactory |
createRemoteInvocationFactory()
Factory method to create a default lingo based invocation factory if none is configured |
void |
destroy()
|
ConnectionFactory |
getConnectionFactory()
|
Destination |
getDestination()
|
Marshaller |
getMarshaller()
|
Requestor |
getRequestor()
|
Destination |
getResponseDestination()
|
Object |
invoke(org.aopalliance.intercept.MethodInvocation methodInvocation)
|
protected void |
populateHeaders(Message requestMessage)
|
protected Object |
recreateRemoteInvocationResult(org.springframework.remoting.support.RemoteInvocationResult result)
Recreate the invocation result contained in the given RemoteInvocationResult object. |
protected Object |
remoteReference(Class type,
Object value)
|
protected void |
replaceRemoteReferences(LingoInvocation invocation,
MethodMetadata metadata)
|
void |
setConnectionFactory(ConnectionFactory connectionFactory)
Used to create a default Requestor if no requestor is explicitly
configured. |
void |
setCorrelationID(String correlationID)
|
void |
setDestination(Destination destination)
Sets the destination used to make requests |
void |
setMarshaller(Marshaller marshaller)
|
void |
setRequestor(Requestor requestor)
|
void |
setResponseDestination(Destination responseDestination)
Sets the destination used to consume responses on - or null and a temporary queue will be created. |
Methods inherited from class org.springframework.remoting.support.RemoteInvocationBasedAccessor |
createRemoteInvocation, getRemoteInvocationFactory, setRemoteInvocationFactory |
Methods inherited from class org.springframework.remoting.support.UrlBasedRemoteAccessor |
getServiceUrl, setServiceUrl |
Methods inherited from class org.springframework.remoting.support.RemoteAccessor |
getServiceInterface, setServiceInterface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JmsClientInterceptor()
public JmsClientInterceptor(Requestor requestor)
public JmsClientInterceptor(Requestor requestor, LingoRemoteInvocationFactory factory)
Method Detail |
public Object invoke(org.aopalliance.intercept.MethodInvocation methodInvocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
public void afterPropertiesSet() throws JMSException
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
JMSException
public void destroy() throws Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
Exception
public Requestor getRequestor()
public void setRequestor(Requestor requestor)
public Destination getDestination()
public void setDestination(Destination destination)
destination
- public Destination getResponseDestination()
public void setResponseDestination(Destination responseDestination)
responseDestination
- public void setCorrelationID(String correlationID)
public Marshaller getMarshaller()
public void setMarshaller(Marshaller marshaller)
public ConnectionFactory getConnectionFactory()
public void setConnectionFactory(ConnectionFactory connectionFactory)
Requestor
if no requestor is explicitly
configured.
protected void populateHeaders(Message requestMessage) throws JMSException
JMSException
protected Object recreateRemoteInvocationResult(org.springframework.remoting.support.RemoteInvocationResult result) throws Throwable
Can be overridden in subclass to provide custom recreation, potentially processing the returned result object.
result
- the RemoteInvocationResult to recreate
Throwable
- if the invocation result is an exceptionRemoteInvocationResult.recreate()
protected void replaceRemoteReferences(LingoInvocation invocation, MethodMetadata metadata)
protected Object remoteReference(Class type, Object value)
protected LingoRemoteInvocationFactory createRemoteInvocationFactory()
protected MetadataStrategy createMetadataStrategy()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |