public class JMSConnectionFactory extends Object
| Constructor and Description |
|---|
JMSConnectionFactory(org.apache.axis2.description.Parameter parameter)
Digest a JMS CF definition from an axis2.xml 'Parameter' and construct
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCacheLevel()
Cache level applicable for this JMS CF
|
javax.jms.Connection |
getConnection()
Get a new Connection or shared Connection from this JMS CF
|
Context |
getContext()
Get cached InitialContext
|
javax.jms.Destination |
getDestination(String destinationName,
String destinationType)
Lookup a Destination using this JMS CF definitions and JNDI name
|
javax.jms.MessageProducer |
getMessageProducer(javax.jms.Connection connection,
javax.jms.Session session,
javax.jms.Destination destination)
Get a new MessageProducer or shared MessageProducer from this JMS CF
|
String |
getName()
Return the name assigned to this JMS CF definition
|
Hashtable<String,String> |
getParameters()
The list of properties (including JNDI and non-JNDI)
|
String |
getReplyDestinationType()
Get the reply destination type from the PARAM_REPLY_DEST_TYPE parameter
|
String |
getReplyToDestination()
Get the reply Destination from the PARAM_REPLY_DESTINATION parameter
|
javax.jms.Session |
getSession(javax.jms.Connection connection)
Get a new Session or shared Session from this JMS CF
|
javax.jms.Destination |
getSharedDestination()
Get the shared Destination - if defined
|
boolean |
isJmsSpec11()
Should the JMS 1.1 API be used? - defaults to yes
|
Boolean |
isQueue()
Return the type of the JMS CF Destination
|
void |
stop()
Close all connections, sessions etc..
|
public JMSConnectionFactory(org.apache.axis2.description.Parameter parameter)
parameter - the axis2.xml 'Parameter' that defined the JMS CFpublic void stop()
public String getName()
public Hashtable<String,String> getParameters()
public Context getContext()
public int getCacheLevel()
public javax.jms.Destination getSharedDestination()
public javax.jms.Destination getDestination(String destinationName, String destinationType)
destinationName - JNDI name of the DestionationdestinationType - looking up destination typepublic String getReplyToDestination()
public String getReplyDestinationType()
public boolean isJmsSpec11()
public Boolean isQueue()
public javax.jms.Connection getConnection()
public javax.jms.Session getSession(javax.jms.Connection connection)
connection - the Connection to be usedpublic javax.jms.MessageProducer getMessageProducer(javax.jms.Connection connection,
javax.jms.Session session,
javax.jms.Destination destination)
connection - the Connection to be usedsession - the Session to be useddestination - the Destination to bind MessageProducer toCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.