public abstract class AbstractJmsContext extends Object implements JMSContext
Constructor and Description |
---|
AbstractJmsContext(String userName,
String password) |
Modifier and Type | Method and Description |
---|---|
javax.jms.Session |
createClientSession(ConnectionImpl connection,
boolean transacted)
Creates the session.
|
javax.jms.Session |
createClientSession(ConnectionImpl connection,
boolean transacted,
int acknowledgeMode)
Creates the session.
|
javax.jms.Connection |
createConnection()
Creates the JMS Connection
|
javax.jms.Destination |
getConfiguredDestination(String destinationName,
javax.jms.Session session,
MessagingMode messagingMode)
Creates JMS Destination
|
abstract javax.jms.ConnectionFactory |
getConnectionFactory() |
public javax.jms.Connection createConnection() throws javax.jms.JMSException
createConnection
in interface JMSContext
javax.jms.JMSException
public javax.jms.Destination getConfiguredDestination(String destinationName, javax.jms.Session session, MessagingMode messagingMode) throws javax.jms.JMSException
getConfiguredDestination
in interface JMSContext
destinationName
- the JMS destination identifiersession
- the JMS sessionmessagingMode
- mode: queue or topicjavax.jms.JMSException
public javax.jms.Session createClientSession(ConnectionImpl connection, boolean transacted) throws javax.jms.JMSException
createClientSession
in interface JMSContext
connection
- the connectionjavax.jms.JMSException
public javax.jms.Session createClientSession(ConnectionImpl connection, boolean transacted, int acknowledgeMode) throws javax.jms.JMSException
createClientSession
in interface JMSContext
connection
- the connectiontransacted
- the flagacknowledgeMode
- thejavax.jms.JMSException
public abstract javax.jms.ConnectionFactory getConnectionFactory() throws javax.jms.JMSException
javax.jms.JMSException
Copyright © 2000–2022 EPAM Systems. All rights reserved.