Package com.epam.fixengine.jms.context
Class AbstractJmsContext
java.lang.Object
com.epam.fixengine.jms.context.AbstractJmsContext
- All Implemented Interfaces:
JMSContext
- Direct Known Subclasses:
JndiContext
,SimpleJmsContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.Session
createClientSession
(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted) Creates the session.jakarta.jms.Session
createClientSession
(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted, int acknowledgeMode) Creates the session.jakarta.jms.Connection
Creates the JMS Connectionjakarta.jms.Destination
getConfiguredDestination
(String destinationName, jakarta.jms.Session session, MessagingMode messagingMode) Creates JMS Destinationabstract jakarta.jms.ConnectionFactory
-
Constructor Details
-
AbstractJmsContext
-
-
Method Details
-
createConnection
public jakarta.jms.Connection createConnection() throws jakarta.jms.JMSExceptionCreates the JMS Connection- Specified by:
createConnection
in interfaceJMSContext
- Returns:
- Connection
- Throws:
jakarta.jms.JMSException
-
getConfiguredDestination
public jakarta.jms.Destination getConfiguredDestination(String destinationName, jakarta.jms.Session session, MessagingMode messagingMode) throws jakarta.jms.JMSException Creates JMS Destination- Specified by:
getConfiguredDestination
in interfaceJMSContext
- Parameters:
destinationName
- the JMS destination identifiersession
- the JMS sessionmessagingMode
- mode: queue or topic- Returns:
- Destination
- Throws:
jakarta.jms.JMSException
-
createClientSession
public jakarta.jms.Session createClientSession(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted) throws jakarta.jms.JMSException Creates the session.- Specified by:
createClientSession
in interfaceJMSContext
- Parameters:
connection
- the connection- Throws:
jakarta.jms.JMSException
-
createClientSession
public jakarta.jms.Session createClientSession(com.epam.fixengine.jms.client.ConnectionImpl connection, boolean transacted, int acknowledgeMode) throws jakarta.jms.JMSException Creates the session.- Specified by:
createClientSession
in interfaceJMSContext
- Parameters:
connection
- the connectiontransacted
- the flagacknowledgeMode
- the- Throws:
jakarta.jms.JMSException
-
getConnectionFactory
public abstract jakarta.jms.ConnectionFactory getConnectionFactory() throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-