public interface JmsConnectionFactory
Modifier and Type | Method and Description |
---|---|
void |
closeAllConnections()
Closes all connections in the connection pool.
|
javax.jms.Destination |
createQueue(int acknowledgementMode_,
java.lang.String queueName)
Creates or obtains a JMS
Queue . |
javax.jms.Destination |
createQueue(javax.jms.Session topicSession_,
java.lang.String queueName)
Creates or obtains a JMS
Queue on the session provided. |
javax.jms.Destination |
createTopic(int acknowledgementMode_,
java.lang.String topicName_)
Creates or obtains a JMS
Topic . |
javax.jms.Destination |
createTopic(javax.jms.Session topicSession_,
java.lang.String topicName_)
Creates or obtains a JMS
Topic on the session provided. |
javax.jms.Connection |
createUnpooledConnection()
Creates a new unpooled
Connection . |
javax.jms.Connection |
getConnection()
Gets a
Connection from the pool. |
javax.jms.TopicPublisher |
getPublisher(javax.jms.TopicSession topicSession_,
javax.jms.Topic topic_)
Deprecated.
Use instead session.createProducer(destination);
|
javax.jms.Session |
getSession(javax.jms.Connection connection_,
int acknowledgementMode_)
Gets a JMS
TopicSession from the connection passed in. |
javax.jms.Session |
getSession(int acknowledgementMode_)
Gets a JMS
Session . |
javax.jms.TopicSubscriber |
getSubscriber(javax.jms.TopicSession topicSession_,
javax.jms.Topic topic_,
java.lang.String durableSubscriberName_)
Deprecated.
Use instead session.createDurableSubscriber(topic,durableSubscriberName)
|
javax.jms.Topic |
getTopic(int acknowledgementMode_,
java.lang.String topicName_)
Deprecated.
use createTopic instead for Connection based rather than TopicConnection based JMS.
|
javax.jms.Topic |
getTopic(javax.jms.TopicSession topicSession_,
java.lang.String topicName_)
Deprecated.
use createTopic instead for Connection based rather than TopicConnection based JMS.
|
javax.jms.TopicConnection |
getTopicConnection()
Deprecated.
use getConnection instead.
|
javax.jms.TopicSession |
getTopicSession(int acknowledgementMode_)
Deprecated.
Use getSession instead.
|
javax.jms.TopicSession |
getTopicSession(javax.jms.TopicConnection topicConnection_,
int acknowledgementMode_)
Deprecated.
Use getSession instead.
|
javax.jms.TopicConnection getTopicConnection() throws javax.naming.NamingException, javax.jms.JMSException
TopicConnection
from the pool.TopicConnection
javax.naming.NamingException
javax.jms.JMSException
javax.jms.Connection createUnpooledConnection() throws javax.naming.NamingException, javax.jms.JMSException
Connection
.Connection
javax.naming.NamingException
javax.jms.JMSException
javax.jms.Connection getConnection() throws javax.naming.NamingException, javax.jms.JMSException
Connection
from the pool.Connection
javax.naming.NamingException
javax.jms.JMSException
javax.jms.TopicSession getTopicSession(int acknowledgementMode_) throws javax.naming.NamingException, javax.jms.JMSException
TopicSession
. Automatically pulls a
TopicConnection
from the pool and creates a session on that
connection.acknowledgementMode_
- the JMS acknowledgement mode to use for
subscribers. Can be Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, or
Session.DUPS_OK_ACKNOWLEDGE
TopicSession
javax.naming.NamingException
- if the JMS TopicConnectionFactory
cannot be foundjavax.jms.JMSException
- if anything goes wrong with the JMS providerjavax.jms.Session getSession(int acknowledgementMode_) throws javax.naming.NamingException, javax.jms.JMSException
Session
. Automatically pulls a
Connection
from the pool and creates a session on that
connection.acknowledgementMode_
- the JMS acknowledgement mode to use for
subscribers. Can be Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, or
Session.DUPS_OK_ACKNOWLEDGE
TopicSession
javax.naming.NamingException
- if the JMS TopicConnectionFactory
cannot be foundjavax.jms.JMSException
- if anything goes wrong with the JMS providerjavax.jms.TopicSession getTopicSession(javax.jms.TopicConnection topicConnection_, int acknowledgementMode_) throws javax.naming.NamingException, javax.jms.JMSException
TopicSession
from the connection passed in.topicConnection_
- the connection to get the session onacknowledgementMode_
- the JMS acknowledgement mode to use for
subscribers. Can be Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, or
Session.DUPS_OK_ACKNOWLEDGE
TopicSession
javax.naming.NamingException
- if the JMS TopicConnectionFactory
cannot be foundjavax.jms.JMSException
- if anything goes wrong with the JMS providerjavax.jms.Session getSession(javax.jms.Connection connection_, int acknowledgementMode_) throws javax.naming.NamingException, javax.jms.JMSException
TopicSession
from the connection passed in.connection_
- the connection to get the session onacknowledgementMode_
- the JMS acknowledgement mode to use for
subscribers. Can be Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, or
Session.DUPS_OK_ACKNOWLEDGE
TopicSession
javax.naming.NamingException
- if the JMS TopicConnectionFactory
cannot be foundjavax.jms.JMSException
- if anything goes wrong with the JMS providerjavax.jms.Topic getTopic(int acknowledgementMode_, java.lang.String topicName_) throws javax.naming.NamingException, javax.jms.JMSException
Topic
. Automatically obtains a session.acknowledgementMode_
- the JMS acknowledgement mode to use for
subscribers. Can be Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, or
Session.DUPS_OK_ACKNOWLEDGE
topicName_
- the name of the topic. When the topic is obtained, the
system-wide topic prefix (located in jms.properties) will automatically be
appendedTopic
javax.naming.NamingException
- if the JMS TopicConnectionFactory
cannot be foundjavax.jms.JMSException
- if anything goes wrong with the JMS providerjavax.jms.Destination createTopic(int acknowledgementMode_, java.lang.String topicName_) throws javax.naming.NamingException, javax.jms.JMSException, InvalidJMSDestinationException
Topic
. Automatically obtains a session.acknowledgementMode_
- the JMS acknowledgement mode to use for
subscribers. Can be Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, or
Session.DUPS_OK_ACKNOWLEDGE
topicName_
- the name of the topic. When the topic is obtained, the
system-wide topic prefix (located in jms.properties) will automatically be
appendedTopic
as Destination;
if the JNDI name already exists, any type of Destination may be returnedjavax.naming.NamingException
- if the JMS TopicConnectionFactory
cannot be foundjavax.jms.JMSException
- if anything goes wrong with the JMS providerInvalidJMSDestinationException
- if the topic cannot be createdjavax.jms.Destination createQueue(int acknowledgementMode_, java.lang.String queueName) throws javax.naming.NamingException, javax.jms.JMSException, InvalidJMSDestinationException
Queue
. Automatically obtains a session.acknowledgementMode_
- the JMS acknowledgement mode to use for
subscribers. Can be Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, or
Session.DUPS_OK_ACKNOWLEDGE
queueName
- the name of the queue. When the queue is obtained, the
system-wide queue prefix (located in jms.properties) will automatically be
appendedQueue
as Destination;
if the JNDI name already exists, any type of Destination may be returnedjavax.naming.NamingException
- if the JMS TopicConnectionFactory
cannot be foundjavax.jms.JMSException
- if anything goes wrong with the JMS providerInvalidJMSDestinationException
- if the queue cannot be createdjavax.jms.Topic getTopic(javax.jms.TopicSession topicSession_, java.lang.String topicName_) throws javax.jms.JMSException
Topic
on the session provided.topicSession_
- the session to obtain the topic ontopicName_
- the name of the topic. When the topic is obtained, the
system-wide topic prefix (located in jms.properties) will automatically be
appendedTopic
javax.jms.JMSException
- if anything goes wrong with the JMS providerjavax.jms.Destination createTopic(javax.jms.Session topicSession_, java.lang.String topicName_) throws javax.jms.JMSException, InvalidJMSDestinationException
Topic
on the session provided.topicSession_
- the session to obtain the topic ontopicName_
- the name of the topic. When the topic is obtained, the
system-wide topic prefix (located in jms.properties) will automatically be
appendedTopic
as Destination;
if the JNDI name already exists, any type of Destination may be returnedjavax.jms.JMSException
- if anything goes wrong with the JMS providerInvalidJMSDestinationException
javax.jms.Destination createQueue(javax.jms.Session topicSession_, java.lang.String queueName) throws javax.jms.JMSException, InvalidJMSDestinationException
Queue
on the session provided.topicSession_
- the session to obtain the topic onqueueName
- the name of the queue. When the queue is obtained, the
system-wide queue prefix (located in jms.properties) will automatically be
appendedQueue
as Destination;
if the JNDI name already exists, any type of Destination may be returnedjavax.jms.JMSException
- if anything goes wrong with the JMS providerInvalidJMSDestinationException
javax.jms.TopicSubscriber getSubscriber(javax.jms.TopicSession topicSession_, javax.jms.Topic topic_, java.lang.String durableSubscriberName_) throws javax.jms.JMSException
TopicSubscriber
on the session provided to
the topic provided. Sets the durable subscriber name to the name provided.topicSession_
- the session to get the subscriber ontopic_
- the topic to get the subscriber todurableSubscriberName_
- the name of the durable subscriberTopicSubscriber
javax.jms.JMSException
- if anything goes wrong with the JMS providerjavax.jms.TopicPublisher getPublisher(javax.jms.TopicSession topicSession_, javax.jms.Topic topic_) throws javax.jms.JMSException
TopicSubscriber
on the session
provided to the topic provided. Sets the durable subscriber name to the
name provided.topicSession_
- the session to get the subscriber ontopic_
- the topic to get the subscriber toTopicSubscriber
javax.jms.JMSException
- if anything goes wrong with the JMS providervoid closeAllConnections() throws javax.jms.JMSException
javax.jms.JMSException
- if anything goes wrong with the JMS providerCopyright © 2003-2024 Appian Corporation. All Rights Reserved.