public class JMSConnectionFactory extends Object
Constructor and Description |
---|
JMSConnectionFactory(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
|
Connection |
getConnection()
Get a new Connection or shared Connection from this JMS CF
|
Context |
getContext()
Get cached InitialContext
|
Destination |
getDestination(String destinationName,
String destinationType)
Lookup a Destination using this JMS CF definitions and JNDI name
|
MessageProducer |
getMessageProducer(Connection connection,
Session session,
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
|
Session |
getSession(Connection connection)
Get a new Session or shared Session from this JMS CF
|
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(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 Destination getSharedDestination()
public 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 Connection getConnection()
public Session getSession(Connection connection)
connection
- the Connection to be usedpublic MessageProducer getMessageProducer(Connection connection, Session session, Destination destination)
connection
- the Connection to be usedsession
- the Session to be useddestination
- the Destination to bind MessageProducer toCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.