| Modifier and Type | Method and Description |
|---|---|
protected void |
JMSCallback.commitSession()
Commits the JMS session.
|
protected void |
JMSCallback.recoverSession()
Recover the JMS session.
|
protected void |
JMSCallback.rollbackSession()
Rollbacks the JMS session.
|
| Modifier and Type | Method and Description |
|---|---|
SessionWrapper |
JMSClientConnector.acquireSession()
Get a
SessionWrapper instance on this particular connection factory. |
void |
JMSClientConnector.closeConnectionFactory()
Close the Client Connection factory resources.
|
JMSClientConnector |
JMSConnectorFactory.createClientConnector(Map<String,String> propertyMap)
Returns an instance of the
JMSClientConnector class. |
javax.jms.Destination |
JMSClientConnector.createDestination(String destinationName)
Create a
Destination instance using a Session. |
javax.jms.Message |
JMSClientConnector.createMessage(String messageType)
Create a
Message instance using a Session. |
JMSServerConnector |
JMSConnectorFactory.createServerConnector(String serviceId,
Map<String,String> connectorConfig,
JMSListener jmsListener)
Returns an instance of the
JMSServerConnector using the given serviceId. |
javax.jms.Message |
JMSClientConnector.poll(String destinationName,
int timeout)
Deprecated.
|
javax.jms.Message |
JMSClientConnector.poll(String destinationName,
int timeout,
String messageSelector)
Method to use to poll messages from a destination with the provided timeout.
|
javax.jms.Message |
JMSClientConnector.pollTransacted(String destinationName,
int timeout,
SessionWrapper sessionWrapper)
Deprecated.
|
javax.jms.Message |
JMSClientConnector.pollTransacted(String destinationName,
int timeout,
SessionWrapper sessionWrapper,
String messageSelector)
Poll method for a transacted session.
|
void |
JMSClientConnector.releaseSession(SessionWrapper sessionWrapper)
Release a SessionWrapper instance to the pool after completing the task.
|
boolean |
JMSClientConnector.send(javax.jms.Message message,
String destinationName)
Message sending logic to send message to a backend endpoint.
|
boolean |
JMSClientConnector.sendTransactedMessage(javax.jms.Message jmsMessage,
String destinationName,
SessionWrapper sessionWrapper)
Send a message using provided transacted session.
|
void |
JMSServerConnector.start()
Start the server connector which actually starts listening for jms messages.
|
boolean |
JMSServerConnector.stop()
Stops the server connector which actually closes the port.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JMSClientConnectionFactory.closeJMSResources()
Close cached JMS resources allocated for this Connection Factory.
|
javax.jms.Destination |
JMSConnectionResourceFactory.createDestination(javax.jms.Session session,
String destinationName)
To create the destination.
|
javax.jms.MessageConsumer |
JMSServerConnectionFactory.createMessageConsumer(javax.jms.Session session,
javax.jms.Destination destination)
Create a message consumer for particular session and destination.
|
javax.jms.MessageProducer |
JMSConnectionResourceFactory.createMessageProducer(javax.jms.Session session)
Create
MessageProducer instance for the provided session. |
javax.jms.Session |
JMSConnectionResourceFactory.createSession(javax.jms.Connection connection)
Create JMS
Session instance on top of the provided Connection instance. |
javax.jms.XASession |
JMSConnectionResourceFactory.createXASession(javax.jms.XAConnection xAConnection)
Create JMS
XASession instance on top of the provided Connection instance. |
javax.jms.ConnectionFactory |
JMSConnectionResourceFactory.getConnectionFactory()
To get the JMS Connection Factory.
|
javax.jms.Destination |
JMSServerConnectionFactory.getDestination(javax.jms.Session session)
To get the destination of the particular session.
|
void |
JMSClientConnectionFactory.returnSessionWrapper(SessionWrapper sessionWrapper)
Return an object to the Session pool.
|
void |
JMSConnectionResourceFactory.start(javax.jms.Connection connection)
Start the jms connection to start the message delivery.
|
void |
JMSConnectionResourceFactory.stop(javax.jms.Connection connection)
Stop the jms connection to stop the message delivery.
|
| Constructor and Description |
|---|
JMSClientConnectionFactory(Properties properties,
boolean isCached)
Constructor.
|
JMSConnectionResourceFactory(Properties properties)
Initialization of JMS ConnectionFactory with the user specified properties.
|
JMSServerConnectionFactory(Properties properties)
Initialization of JMS ConnectionFactory with the user specified properties.
|
| Modifier and Type | Method and Description |
|---|---|
JMSClientConnector |
JMSConnectorFactoryImpl.createClientConnector(Map<String,String> propertyMap) |
JMSServerConnector |
JMSConnectorFactoryImpl.createServerConnector(String serviceId,
Map<String,String> connectorConfig,
JMSListener jmsListener) |
| Modifier and Type | Method and Description |
|---|---|
JMSMessageConsumer |
JMSMessageConsumerBuilder.build()
Build the
JMSMessageConsumer with the given data. |
void |
JMSMessageConsumer.closeAll()
Close the consumer by closing the relevant
Connection. |
void |
JMSServerConnectorImpl.start() |
boolean |
JMSServerConnectorImpl.stop() |
| Constructor and Description |
|---|
JMSMessageConsumer(JMSServerConnectionFactory connectionFactory,
boolean useReceiver,
JMSListener jmsListener,
String serviceId,
long retryInterval,
int maxRetryCount)
Create a JMS message consumer and start consuming messages.
|
JMSServerConnectorImpl(String serviceId,
Map<String,String> connectorConfig,
JMSListener jmsListener) |
| Modifier and Type | Method and Description |
|---|---|
SessionWrapper |
JMSClientConnectorImpl.acquireSession() |
void |
JMSClientConnectorImpl.closeConnectionFactory() |
javax.jms.Destination |
JMSClientConnectorImpl.createDestination(String destinationName) |
javax.jms.Message |
JMSClientConnectorImpl.createMessage(String messageType) |
JMSClientConnectionFactory |
JMSConnectionFactoryManager.getJMSConnectionFactory(Properties properties)
Get the JMSServerConnectionFactory against the passed parameters.
|
javax.jms.Message |
JMSClientConnectorImpl.poll(String destinationName,
int timeout)
Deprecated.
|
javax.jms.Message |
JMSClientConnectorImpl.poll(String destinationName,
int timeout,
String messageSelector) |
javax.jms.Message |
JMSClientConnectorImpl.pollTransacted(String destinationName,
int timeout,
SessionWrapper sessionWrapper)
Deprecated.
|
javax.jms.Message |
JMSClientConnectorImpl.pollTransacted(String destinationName,
int timeout,
SessionWrapper sessionWrapper,
String messageSelector) |
void |
JMSClientConnectorImpl.releaseSession(SessionWrapper sessionWrapper) |
boolean |
JMSClientConnectorImpl.send(javax.jms.Message jmsMessage,
String destinationName) |
boolean |
JMSClientConnectorImpl.sendTransactedMessage(javax.jms.Message jmsMessage,
String destinationName,
SessionWrapper sessionWrapper) |
| Constructor and Description |
|---|
JMSClientConnectorImpl(Map<String,String> propertyMap) |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.carbon.messaging.CarbonMessage |
JMSUtils.createJMSCarbonMessage(javax.jms.Message message)
Create a
CarbonMessage using the provided JMS Message. |
Copyright © 2019 WSO2. All rights reserved.