org.logicblaze.lingo.jms.marshall
Interface Marshaller

All Known Implementing Classes:
DefaultMarshaller

public interface Marshaller

Version:
$Revision: 1.1 $

Method Summary
 Message createRequestMessage(Requestor requestor, LingoInvocation invocation)
          Creates the request message
 org.springframework.remoting.support.RemoteInvocationResult extractInvocationResult(Message message)
          Extracts the invocation result from the response message
 org.springframework.remoting.support.RemoteInvocation readRemoteInvocation(Message message)
          Read a RemoteInvocation from the given JMS message
 

Method Detail

createRequestMessage

public Message createRequestMessage(Requestor requestor,
                                    LingoInvocation invocation)
                             throws JMSException
Creates the request message

Parameters:
requestor -
invocation - the remote invocation to send
Throws:
JMSException - if the message could not be created

extractInvocationResult

public org.springframework.remoting.support.RemoteInvocationResult extractInvocationResult(Message message)
                                                                                    throws JMSException
Extracts the invocation result from the response message

Parameters:
message - the response message
Returns:
the invocation result
Throws:
JMSException - is thrown if a JMS exception occurs

readRemoteInvocation

public org.springframework.remoting.support.RemoteInvocation readRemoteInvocation(Message message)
                                                                           throws JMSException
Read a RemoteInvocation from the given JMS message

Parameters:
message - current JMS message
Returns:
the RemoteInvocation object
Throws:
JMSException


Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.