2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.



org.apache.tuscany.sca.binding.jms.provider
Class JMSBindingInvoker

java.lang.Object
  extended by org.apache.tuscany.sca.binding.jms.provider.JMSBindingInvoker
All Implemented Interfaces:
DataExchangeSemantics, Invoker

Deprecated.

@Deprecated
public class JMSBindingInvoker
extends java.lang.Object
implements Invoker, DataExchangeSemantics

Invoker for the JMS binding.


Field Summary
protected  Destination bindingReplyDest
          Deprecated.  
protected  Destination bindingRequestDest
          Deprecated.  
protected  JMSBinding jmsBinding
          Deprecated.  
protected  JMSResourceFactory jmsResourceFactory
          Deprecated.  
protected  Operation operation
          Deprecated.  
protected  java.lang.String operationName
          Deprecated.  
protected  RuntimeComponentReference reference
          Deprecated.  
protected  JMSMessageProcessor requestMessageProcessor
          Deprecated.  
protected  JMSMessageProcessor responseMessageProcessor
          Deprecated.  
 
Constructor Summary
JMSBindingInvoker(JMSBinding jmsBinding, Operation operation, JMSResourceFactory jmsResourceFactory, RuntimeComponentReference reference)
          Deprecated.  
 
Method Summary
 boolean allowsPassByReference()
          Deprecated. Indicate if the data can be passed in by reference as they won't be mutated.
protected  java.lang.String getCallbackDestinationName(RuntimeComponentReference reference)
          Deprecated.  
protected  Destination getReplyToDestination(Session session)
          Deprecated.  
protected  Destination getRequestDestination(Message tuscanyMsg, Session session)
          Deprecated.  
protected  boolean hasCallback()
          Deprecated.  
 Message invoke(Message tuscanyMsg)
          Deprecated. Process a synchronous wire
protected  java.lang.Object invokeTarget(Message tuscanyMsg)
          Deprecated.  
protected  Destination lookupDestination()
          Deprecated. Looks up the Destination Queue for the JMS Binding
protected  Destination lookupDestinationQueue(boolean isReponseQueue)
          Deprecated. Looks up the Destination Queue for the JMS Binding.
protected  Destination lookupResponseDestination()
          Deprecated. Looks up the Destination Response Queue for the JMS Binding
protected  Message receiveReply(Session session, Destination replyToDest, java.lang.String requestMsgId)
          Deprecated.  
protected  Message sendRequest(Message tuscanyMsg, Session session, Destination replyToDest)
          Deprecated.  
protected  void setHeaders(Message tuscanyMsg, Message jmsMsg)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operation

protected Operation operation
Deprecated. 

operationName

protected java.lang.String operationName
Deprecated. 

jmsBinding

protected JMSBinding jmsBinding
Deprecated. 

jmsResourceFactory

protected JMSResourceFactory jmsResourceFactory
Deprecated. 

requestMessageProcessor

protected JMSMessageProcessor requestMessageProcessor
Deprecated. 

responseMessageProcessor

protected JMSMessageProcessor responseMessageProcessor
Deprecated. 

bindingRequestDest

protected Destination bindingRequestDest
Deprecated. 

bindingReplyDest

protected Destination bindingReplyDest
Deprecated. 

reference

protected RuntimeComponentReference reference
Deprecated. 
Constructor Detail

JMSBindingInvoker

public JMSBindingInvoker(JMSBinding jmsBinding,
                         Operation operation,
                         JMSResourceFactory jmsResourceFactory,
                         RuntimeComponentReference reference)
Deprecated. 
Method Detail

lookupDestination

protected Destination lookupDestination()
                                 throws javax.naming.NamingException,
                                        JMSBindingException
Deprecated. 
Looks up the Destination Queue for the JMS Binding

Returns:
The Destination Queue
Throws:
javax.naming.NamingException - Failed to lookup Destination Queue
JMSBindingException - Failed to lookup Destination Queue
See Also:
lookupDestinationQueue(boolean)

lookupResponseDestination

protected Destination lookupResponseDestination()
                                         throws javax.naming.NamingException,
                                                JMSBindingException
Deprecated. 
Looks up the Destination Response Queue for the JMS Binding

Returns:
The Destination Response Queue
Throws:
javax.naming.NamingException - Failed to lookup Destination Response Queue
JMSBindingException - Failed to lookup Destination Response Queue
See Also:
lookupDestinationQueue(boolean)

lookupDestinationQueue

protected Destination lookupDestinationQueue(boolean isReponseQueue)
                                      throws javax.naming.NamingException,
                                             JMSBindingException
Deprecated. 
Looks up the Destination Queue for the JMS Binding.

What happens in the look up will depend on the create mode specified for the JMS Binding:

See the SCA JMS Binding specification for more information.

Parameters:
isReponseQueue - true if we are creating a response queue. false if we are creating a request queue
Returns:
The Destination queue.
Throws:
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 binding

invoke

public Message invoke(Message tuscanyMsg)
Deprecated. 
Description copied from interface: Invoker
Process a synchronous wire

Specified by:
invoke in interface Invoker
Parameters:
tuscanyMsg - The request Message for the wire
Returns:
The response Message from the wire

invokeTarget

protected java.lang.Object invokeTarget(Message tuscanyMsg)
                                 throws java.lang.reflect.InvocationTargetException
Deprecated. 
Throws:
java.lang.reflect.InvocationTargetException

getReplyToDestination

protected Destination getReplyToDestination(Session session)
                                     throws JMSException,
                                            JMSBindingException,
                                            javax.naming.NamingException
Deprecated. 
Throws:
JMSException
JMSBindingException
javax.naming.NamingException

sendRequest

protected Message sendRequest(Message tuscanyMsg,
                              Session session,
                              Destination replyToDest)
                       throws JMSException,
                              JMSBindingException,
                              javax.naming.NamingException
Deprecated. 
Throws:
JMSException
JMSBindingException
javax.naming.NamingException

getRequestDestination

protected Destination getRequestDestination(Message tuscanyMsg,
                                            Session session)
                                     throws JMSBindingException,
                                            javax.naming.NamingException,
                                            JMSException
Deprecated. 
Throws:
JMSBindingException
javax.naming.NamingException
JMSException

setHeaders

protected void setHeaders(Message tuscanyMsg,
                          Message jmsMsg)
                   throws JMSException
Deprecated. 
Throws:
JMSException

hasCallback

protected boolean hasCallback()
Deprecated. 

receiveReply

protected Message receiveReply(Session session,
                               Destination replyToDest,
                               java.lang.String requestMsgId)
                        throws JMSException,
                               javax.naming.NamingException
Deprecated. 
Throws:
JMSException
javax.naming.NamingException

getCallbackDestinationName

protected java.lang.String getCallbackDestinationName(RuntimeComponentReference reference)
Deprecated. 

allowsPassByReference

public boolean allowsPassByReference()
Deprecated. 
Description copied from interface: DataExchangeSemantics
Indicate if the data can be passed in by reference as they won't be mutated.

Specified by:
allowsPassByReference in interface DataExchangeSemantics
Returns:
true if pass-by-reference is allowed