| org.springframework.remoting.support.RemoteInvocationBasedExporter org.springframework.jms.remoting.JmsInvokerServiceExporter
afterPropertiesSet | public void afterPropertiesSet()(Code) | | |
createResponseMessage | protected Message createResponseMessage(Message requestMessage, Session session, RemoteInvocationResult result) throws JMSException(Code) | | Create the invocation result response message.
The default implementation creates a JMS ObjectMessage
for the given RemoteInvocationResult object.
Parameters: requestMessage - the original request message Parameters: session - the JMS session to use Parameters: result - the invocation result the message response to send throws: javax.jms.JMSException - if creating the messsage failed |
onInvalidRequest | protected RemoteInvocation onInvalidRequest(Message requestMessage) throws JMSException(Code) | | Callback that is invoked by
JmsInvokerServiceExporter.readRemoteInvocation when it encounters an invalid request message.
The default implementation either discards the invalid message or
throws a MessageFormatException - according to the "ignoreInvalidRequests"
flag, which is set to "true" (that is, discard invalid messages) by default.
Parameters: requestMessage - the invalid request message the RemoteInvocation to expose for the invalid request (typicallynull in case of an invalid message that will simply be ignored) throws: javax.jms.JMSException - in case of the invalid request supposedto lead to an exception (instead of ignoring it) See Also: JmsInvokerServiceExporter.readRemoteInvocation See Also: JmsInvokerServiceExporter.setIgnoreInvalidRequests |
onMessage | public void onMessage(Message requestMessage, Session session) throws JMSException(Code) | | |
readRemoteInvocation | protected RemoteInvocation readRemoteInvocation(Message requestMessage) throws JMSException(Code) | | Read a RemoteInvocation from the given JMS message.
Parameters: requestMessage - current request message the RemoteInvocation object (or null in case of an invalid message that will simply be ignored) throws: javax.jms.JMSException - in case of message access failure |
setIgnoreInvalidRequests | public void setIgnoreInvalidRequests(boolean ignoreInvalidRequests)(Code) | | Set whether invalidly formatted messages should be discarded.
Default is "true".
Switch this flag to "false" to throw an exception back to the
listener container. This will typically lead to redelivery of
the message, which is usually undesirable - since the message
content will be the same (that is, still invalid).
|
writeRemoteInvocationResult | protected void writeRemoteInvocationResult(Message requestMessage, Session session, RemoteInvocationResult result) throws JMSException(Code) | | Send the given RemoteInvocationResult as a JMS message to the originator.
Parameters: requestMessage - current request message Parameters: session - the JMS Session to use Parameters: result - the RemoteInvocationResult object throws: javax.jms.JMSException - if thrown by trying to send the message |
|
|