|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.transport.jms.JMSConnectionFactory
public class JMSConnectionFactory
Encapsulate a JMS Connection factory definition within an Axis2.xml JMS Connection Factory definitions, allows JNDI properties as well as other service level parameters to be defined, and re-used by each service that binds to it When used for sending messages out, the JMSConnectionFactory'ies are able to cache a Connection, Session or Producer
Constructor Summary | |
---|---|
JMSConnectionFactory(org.apache.axis2.description.Parameter parameter)
Digest a JMS CF definition from an axis2.xml 'Parameter' and construct |
Method Summary | |
---|---|
int |
getCacheLevel()
Cache level applicable for this JMS CF |
javax.jms.Connection |
getConnection()
Get a new Connection or shared Connection from this JMS CF |
javax.naming.Context |
getContext()
Get cached InitialContext |
javax.jms.Destination |
getDestination(java.lang.String destinationName,
java.lang.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 |
java.lang.String |
getName()
Return the name assigned to this JMS CF definition |
java.util.Hashtable<java.lang.String,java.lang.String> |
getParameters()
The list of properties (including JNDI and non-JNDI) |
java.lang.String |
getReplyDestinationType()
Get the reply destination type from the PARAM_REPLY_DEST_TYPE parameter |
java.lang.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 |
java.lang.Boolean |
isQueue()
Return the type of the JMS CF Destination |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMSConnectionFactory(org.apache.axis2.description.Parameter parameter)
parameter
- the axis2.xml 'Parameter' that defined the JMS CFMethod Detail |
---|
public java.lang.String getName()
public java.util.Hashtable<java.lang.String,java.lang.String> getParameters()
public javax.naming.Context getContext()
public int getCacheLevel()
public javax.jms.Destination getSharedDestination()
public javax.jms.Destination getDestination(java.lang.String destinationName, java.lang.String destinationType)
destinationName
- JNDI name of the DestionationdestinationType
- looking up destination type
public java.lang.String getReplyToDestination()
public java.lang.String getReplyDestinationType()
public boolean isJmsSpec11()
public java.lang.Boolean isQueue()
public javax.jms.Connection getConnection()
public javax.jms.Session getSession(javax.jms.Connection connection)
connection
- the Connection to be used
public 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 to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |