Uses of Interface
jakarta.jms.Session
-
-
Uses of Session in jakarta.jms
Subinterfaces of Session in jakarta.jms Modifier and Type Interface Description interface
QueueSession
AQueueSession
object provides methods for creatingQueueReceiver
,QueueSender
,QueueBrowser
, andTemporaryQueue
objects.interface
TopicSession
ATopicSession
object provides methods for creatingTopicPublisher
,TopicSubscriber
, andTemporaryTopic
objects.interface
XAQueueSession
AnXAQueueSession
provides a regularQueueSession
, which can be used to createQueueReceiver
,QueueSender
, andQueueBrowser
objects (optional).interface
XASession
TheXASession
interface extends the capability ofSession
by adding access to a Jakarta Messaging provider's support for the Java Transaction API (JTA) (optional).interface
XATopicSession
AnXATopicSession
provides a regularTopicSession
.Methods in jakarta.jms that return Session Modifier and Type Method Description Session
Connection. createSession()
Creates aSession
object, specifying no arguments.Session
Connection. createSession(boolean transacted, int acknowledgeMode)
Creates aSession
object, specifyingtransacted
andacknowledgeMode
.Session
Connection. createSession(int sessionMode)
Creates aSession
object, specifyingsessionMode
.Session
XAConnection. createSession(boolean transacted, int acknowledgeMode)
Creates anSession
object.Session
ServerSession. getSession()
Return theServerSession
'sSession
.Session
XASession. getSession()
Gets the session associated with thisXASession
.
-