|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.binding.jms.provider.RRBJMSBindingInvoker
public class RRBJMSBindingInvoker
Invoker for the JMS binding.
Field Summary | |
---|---|
protected Destination |
bindingReplyDest
|
protected Destination |
bindingRequestDest
|
protected JMSBinding |
jmsBinding
|
protected JMSResourceFactory |
jmsResourceFactory
|
protected Operation |
operation
|
protected java.lang.String |
operationName
|
protected RuntimeComponentReference |
reference
|
protected JMSMessageProcessor |
requestMessageProcessor
|
protected JMSMessageProcessor |
responseMessageProcessor
|
protected RuntimeWire |
runtimeWire
|
Constructor Summary | |
---|---|
RRBJMSBindingInvoker(JMSBinding jmsBinding,
Operation operation,
JMSResourceFactory jmsResourceFactory,
RuntimeComponentReference reference)
|
Method Summary | |
---|---|
boolean |
allowsPassByReference()
Indicate if the data can be passed in by reference as they won't be mutated. |
protected Destination |
getReplyToDestination(Session session)
|
protected Destination |
getRequestDestination(Message tuscanyMsg,
Session session)
|
Message |
invoke(Message tuscanyMsg)
Process a synchronous wire |
protected Destination |
lookupDestination()
Looks up the Destination Queue for the JMS Binding |
protected Destination |
lookupDestinationQueue(boolean isReponseQueue)
Looks up the Destination Queue for the JMS Binding. |
protected Destination |
lookupResponseDestination()
Looks up the Destination Response Queue for the JMS Binding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Operation operation
protected java.lang.String operationName
protected JMSBinding jmsBinding
protected JMSResourceFactory jmsResourceFactory
protected JMSMessageProcessor requestMessageProcessor
protected JMSMessageProcessor responseMessageProcessor
protected Destination bindingRequestDest
protected Destination bindingReplyDest
protected RuntimeComponentReference reference
protected RuntimeWire runtimeWire
Constructor Detail |
---|
public RRBJMSBindingInvoker(JMSBinding jmsBinding, Operation operation, JMSResourceFactory jmsResourceFactory, RuntimeComponentReference reference)
Method Detail |
---|
protected Destination lookupDestination() throws javax.naming.NamingException, JMSBindingException
javax.naming.NamingException
- Failed to lookup Destination Queue
JMSBindingException
- Failed to lookup Destination QueuelookupDestinationQueue(boolean)
protected Destination lookupResponseDestination() throws javax.naming.NamingException, JMSBindingException
javax.naming.NamingException
- Failed to lookup Destination Response Queue
JMSBindingException
- Failed to lookup Destination Response QueuelookupDestinationQueue(boolean)
protected Destination lookupDestinationQueue(boolean isReponseQueue) throws javax.naming.NamingException, JMSBindingException
What happens in the look up will depend on the create mode specified for the JMS Binding:
isReponseQueue
- true
if we are creating a response queue.
false
if we are creating a request queue
javax.naming.NamingException
- Failed to lookup JMS queue
JMSBindingException
- Failed to lookup JMS Queue. Probable cause is that
the JMS queue's current existence/non-existence is not compatible with
the create mode specified on the bindingpublic Message invoke(Message tuscanyMsg)
Invoker
invoke
in interface Invoker
tuscanyMsg
- The request Message for the wire
protected Destination getRequestDestination(Message tuscanyMsg, Session session) throws JMSBindingException, javax.naming.NamingException, JMSException
JMSBindingException
javax.naming.NamingException
JMSException
protected Destination getReplyToDestination(Session session) throws JMSException, JMSBindingException, javax.naming.NamingException
JMSException
JMSBindingException
javax.naming.NamingException
public boolean allowsPassByReference()
DataExchangeSemantics
allowsPassByReference
in interface DataExchangeSemantics
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |