Package org.apache.axis2.transport.jms
Class JMSOutTransportInfo
- java.lang.Object
-
- org.apache.axis2.transport.jms.JMSOutTransportInfo
-
- All Implemented Interfaces:
OutTransportInfo
public class JMSOutTransportInfo extends Object implements 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMSMessageSender
createJMSSender()
Create a one time MessageProducer for this JMS OutTransport information.javax.jms.ConnectionFactory
getConnectionFactory()
String
getContentTypeProperty()
javax.jms.Destination
getDestination()
String
getDestinationType()
JMSConnectionFactory
getJmsConnectionFactory()
Hashtable<String,String>
getProperties()
javax.jms.Destination
getReplyDestination()
javax.jms.Destination
getReplyDestination(String replyDest)
Look up for the given destinationString
getReplyDestinationName()
String
getReplyDestinationType()
String
getTargetEPR()
void
loadConnectionFactoryFromProperies()
Provides a lazy load when created with a target EPR.void
setContentType(String contentType)
void
setContentTypeProperty(String contentTypeProperty)
void
setDestinationType(String destinationType)
void
setReplyDestination(javax.jms.Destination replyDestination)
void
setReplyDestinationName(String replyDestinationName)
void
setReplyDestinationType(String replyDestinationType)
-
-
-
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(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(String contentType)
- Specified by:
setContentType
in interfaceOutTransportInfo
-
getTargetEPR
public String getTargetEPR()
-
getDestinationType
public String getDestinationType()
-
setDestinationType
public void setDestinationType(String destinationType)
-
getReplyDestination
public javax.jms.Destination getReplyDestination()
-
setReplyDestination
public void setReplyDestination(javax.jms.Destination replyDestination)
-
getReplyDestinationType
public String getReplyDestinationType()
-
setReplyDestinationType
public void setReplyDestinationType(String replyDestinationType)
-
getReplyDestinationName
public String getReplyDestinationName()
-
setReplyDestinationName
public void setReplyDestinationName(String replyDestinationName)
-
getContentTypeProperty
public String getContentTypeProperty()
-
setContentTypeProperty
public void setContentTypeProperty(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
-
-