public class JMSClientConnectionFactory extends JMSConnectionResourceFactory
clientId, destinationType, jmsSpec| Constructor and Description |
|---|
JMSClientConnectionFactory(Properties properties,
boolean isCached)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeJMSResources()
Close cached JMS resources allocated for this Connection Factory.
|
javax.jms.Connection |
createConnection()
Create a
Connection instance using the initialized configurations. |
javax.jms.XAConnection |
createXAConnection()
Create a
XAConnection instance using the initialized configurations. |
List<ConnectionWrapper> |
getConnections() |
String |
getFactoryId()
Get ID of the factory.
|
int |
getMaxNumberOfConnections() |
int |
getMaxSessionsPerConnection() |
SessionWrapper |
getSessionWrapper()
Borrow an object from the session pool.
|
boolean |
isClientCaching()
Is this Client Connection factory is configured to use caching/pooling.
|
void |
notifyError(javax.jms.JMSException ex)
This method will get invoked by the JMS Connection Error listener whenever as error occurs in the
JMS Connection level.
|
void |
returnSessionWrapper(SessionWrapper sessionWrapper)
Return an object to the Session pool.
|
closeConnection, closeConsumer, closeProducer, closeSession, createDestination, createMessageProducer, createSession, createXASession, getConnectionFactory, getConnectionFactoryString, getDestinationType, getJmsSpec, getProperties, getSessionAckMode, isTransactedSession, isxATransacted, start, stoppublic JMSClientConnectionFactory(Properties properties, boolean isCached) throws JMSConnectorException
properties - JMS properties.JMSConnectorException - if an error thrown from parents constructor.public int getMaxNumberOfConnections()
public int getMaxSessionsPerConnection()
public void notifyError(javax.jms.JMSException ex)
This can be used to close all the Connections, Sessions, Producer, Consumers created on top of this Connection factory and initialize again.
notifyError in class JMSConnectionResourceFactoryex - JMS Exception that occurred in Connection.public List<ConnectionWrapper> getConnections()
public SessionWrapper getSessionWrapper() throws Exception
Exception - Exception when borrowing an object from the pool.public void returnSessionWrapper(SessionWrapper sessionWrapper) throws JMSConnectorException
sessionWrapper - SessionWrapper instance.JMSConnectorExceptionpublic void closeJMSResources()
throws JMSConnectorException
JMSConnectorExceptionpublic boolean isClientCaching()
public javax.jms.Connection createConnection()
throws javax.jms.JMSException
JMSConnectionResourceFactoryConnection instance using the initialized configurations.createConnection in class JMSConnectionResourceFactoryjavax.jms.JMSException - thrown when creating the connection object from JMS connection factory.public javax.jms.XAConnection createXAConnection()
throws javax.jms.JMSException
JMSConnectionResourceFactoryXAConnection instance using the initialized configurations.createXAConnection in class JMSConnectionResourceFactoryjavax.jms.JMSException - thrown when creating the XAconnection object from JMS XAconnection factory.public String getFactoryId()
Copyright © 2019 WSO2. All rights reserved.