public class JMSConnectionFactory extends Object
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
Borrowed generously from Apache Axi2 JMS implementation.
| Modifier and Type | Class and Description |
|---|---|
static class |
JMSConnectionFactory.JMSPooledConnectionHolder
Holder class for connections and its session/producer.
|
| Constructor and Description |
|---|
JMSConnectionFactory(Hashtable<String,String> parameters,
String name,
String destination)
Digest a JMS CF definition and construct.
|
JMSConnectionFactory(Hashtable<String,String> parameters,
String name,
String destination,
int maxConcurrentConnections)
Digest a JMS CF definition 'Parameter' and construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
javax.jms.Connection |
createConnection() |
JMSConnectionFactory.JMSPooledConnectionHolder |
getConnectionFromPool() |
Context |
getContext()
Get cached InitialContext.
|
javax.jms.Destination |
getDestination()
Lookup a Destination using this JMS CF definitions and JNDI name.
|
boolean |
isJmsSpec11()
Should the JMS 1.1 API be used? - defaults to yes
|
Boolean |
isQueue()
Return the type of the JMS CF Destination.
|
void |
returnPooledConnection(JMSConnectionFactory.JMSPooledConnectionHolder pooledConnection) |
public JMSConnectionFactory(Hashtable<String,String> parameters, String name, String destination)
public void returnPooledConnection(JMSConnectionFactory.JMSPooledConnectionHolder pooledConnection)
public Context getContext()
public javax.jms.Destination getDestination()
public boolean isJmsSpec11()
public Boolean isQueue()
public javax.jms.Connection createConnection()
public JMSConnectionFactory.JMSPooledConnectionHolder getConnectionFromPool()
public void close()
Copyright © 2019 WSO2. All rights reserved.