public class JMSServerConnectionFactory extends JMSConnectionResourceFactory
clientId, destinationType, jmsSpec| Constructor and Description |
|---|
JMSServerConnectionFactory(Properties properties)
Initialization of JMS ConnectionFactory with the user specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
javax.jms.Connection |
createConnection()
Create a
Connection instance using the initialized configurations. |
javax.jms.MessageConsumer |
createMessageConsumer(javax.jms.Session session,
javax.jms.Destination destination)
Create a message consumer for particular session and destination.
|
javax.jms.Destination |
getDestination(javax.jms.Session session)
To get the destination of the particular session.
|
closeConnection, closeConsumer, closeProducer, closeSession, createDestination, createMessageProducer, createSession, createXAConnection, createXASession, getConnectionFactory, getConnectionFactoryString, getDestinationType, getJmsSpec, getProperties, getSessionAckMode, isTransactedSession, isxATransacted, notifyError, start, stoppublic JMSServerConnectionFactory(Properties properties) throws JMSConnectorException
properties - Properties to be added to the initial context.JMSConnectorException - Thrown when initial context name is wrong or when creating connection factory.public javax.jms.Connection createConnection()
throws javax.jms.JMSException
Connection instance using the initialized configurations.createConnection in class JMSConnectionResourceFactoryjavax.jms.JMSException - thrown when creating the connection object from JMS connection factory.public javax.jms.MessageConsumer createMessageConsumer(javax.jms.Session session,
javax.jms.Destination destination)
throws JMSConnectorException
session - JMS Session to create the consumer.destination - JMS destination which the consumer should listen to.JMSConnectorException - Thrown when creating jms message consumer.public javax.jms.Destination getDestination(javax.jms.Session session)
throws JMSConnectorException
session - JMS session that we need to find the destination.JMSConnectorException - Thrown when looking up destination.Copyright © 2019 WSO2. All rights reserved.