Uses of Interface
jakarta.jms.Session
Package
Description
The Jakarta Messaging API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
-
Uses of Session in jakarta.jms
Modifier and TypeInterfaceDescriptioninterface
AQueueSession
object provides methods for creatingQueueReceiver
,QueueSender
,QueueBrowser
, andTemporaryQueue
objects.interface
ATopicSession
object provides methods for creatingTopicPublisher
,TopicSubscriber
, andTemporaryTopic
objects.interface
AnXAQueueSession
provides a regularQueueSession
, which can be used to createQueueReceiver
,QueueSender
, andQueueBrowser
objects (optional).interface
TheXASession
interface extends the capability ofSession
by adding access to a Jakarta Messaging provider's support for the Java Transaction API (JTA) (optional).interface
AnXATopicSession
provides a regularTopicSession
.Modifier and TypeMethodDescriptionConnection.createSession()
Creates aSession
object, specifying no arguments.Connection.createSession
(boolean transacted, int acknowledgeMode) Creates aSession
object, specifyingtransacted
andacknowledgeMode
.Connection.createSession
(int sessionMode) Creates aSession
object, specifyingsessionMode
.XAConnection.createSession
(boolean transacted, int acknowledgeMode) Creates anSession
object.ServerSession.getSession()
Return theServerSession
'sSession
.XASession.getSession()
Gets the session associated with thisXASession
.