org.apache.axis2.transport.jms
Class JMSOutTransportInfo

java.lang.Object
  extended by org.apache.axis2.transport.jms.JMSOutTransportInfo
All Implemented Interfaces:
org.apache.axis2.transport.OutTransportInfo

public class JMSOutTransportInfo
extends java.lang.Object
implements org.apache.axis2.transport.OutTransportInfo

The JMS OutTransportInfo is a holder of information to send an outgoing message (e.g. a Response) to a JMS destination. Thus at a minimum a reference to a ConnectionFactory and a Destination are held


Method Summary
 JMSMessageSender createJMSSender()
          Create a one time MessageProducer for this JMS OutTransport information.
 javax.jms.ConnectionFactory getConnectionFactory()
           
 java.lang.String getContentTypeProperty()
           
 javax.jms.Destination getDestination()
           
 java.lang.String getDestinationType()
           
 JMSConnectionFactory getJmsConnectionFactory()
           
 java.util.Hashtable<java.lang.String,java.lang.String> getProperties()
           
 javax.jms.Destination getReplyDestination()
           
 javax.jms.Destination getReplyDestination(java.lang.String replyDest)
          Look up for the given destination
 java.lang.String getReplyDestinationName()
           
 java.lang.String getReplyDestinationType()
           
 java.lang.String getTargetEPR()
           
 void loadConnectionFactoryFromProperies()
          Provides a lazy load when created with a target EPR.
 void setContentType(java.lang.String contentType)
           
 void setContentTypeProperty(java.lang.String contentTypeProperty)
           
 void setDestinationType(java.lang.String destinationType)
           
 void setReplyDestination(javax.jms.Destination replyDestination)
           
 void setReplyDestinationName(java.lang.String replyDestinationName)
           
 void setReplyDestinationType(java.lang.String replyDestinationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadConnectionFactoryFromProperies

public void loadConnectionFactoryFromProperies()
Provides a lazy load when created with a target EPR. This method performs actual lookup for the connection factory and destination


getReplyDestination

public javax.jms.Destination getReplyDestination(java.lang.String replyDest)
Look up for the given destination

Parameters:
replyDest - the JNDI name to lookup Destination required
Returns:
Destination for the JNDI name passed

getDestination

public javax.jms.Destination getDestination()

getConnectionFactory

public javax.jms.ConnectionFactory getConnectionFactory()

getJmsConnectionFactory

public JMSConnectionFactory getJmsConnectionFactory()

setContentType

public void setContentType(java.lang.String contentType)
Specified by:
setContentType in interface org.apache.axis2.transport.OutTransportInfo

getProperties

public java.util.Hashtable<java.lang.String,java.lang.String> getProperties()

getTargetEPR

public java.lang.String getTargetEPR()

getDestinationType

public java.lang.String getDestinationType()

setDestinationType

public void setDestinationType(java.lang.String destinationType)

getReplyDestination

public javax.jms.Destination getReplyDestination()

setReplyDestination

public void setReplyDestination(javax.jms.Destination replyDestination)

getReplyDestinationType

public java.lang.String getReplyDestinationType()

setReplyDestinationType

public void setReplyDestinationType(java.lang.String replyDestinationType)

getReplyDestinationName

public java.lang.String getReplyDestinationName()

setReplyDestinationName

public void setReplyDestinationName(java.lang.String replyDestinationName)

getContentTypeProperty

public java.lang.String getContentTypeProperty()

setContentTypeProperty

public void setContentTypeProperty(java.lang.String contentTypeProperty)

createJMSSender

public JMSMessageSender createJMSSender()
                                 throws javax.jms.JMSException
Create a one time MessageProducer for this JMS OutTransport information. For simplicity and best compatibility, this method uses only JMS 1.0.2b API. Please be cautious when making any changes

Returns:
a JMSSender based on one-time use resources
Throws:
javax.jms.JMSException - on errors, to be handled and logged by the caller


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.