public class DefaultServerSession
extends java.lang.Thread
implements javax.jms.ServerSession
DefaultServerSession
is a default implementation of
the JMS ServerSession interface.
Modifier and Type | Field and Description |
---|---|
private javax.jms.Session |
session
The JMS Session on which this ServerSession is based
|
private boolean |
started
Indicates whether the session has been started
|
Constructor and Description |
---|
DefaultServerSession(javax.jms.Session session) |
Modifier and Type | Method and Description |
---|---|
javax.jms.Session |
getSession()
Return the ServerSession's Session.
|
void |
run() |
void |
start()
Cause the session's run method to be called to process messages
that were just assigned to it.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
private javax.jms.Session session
private boolean started
public DefaultServerSession(javax.jms.Session session) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.Session getSession() throws javax.jms.JMSException
getSession
in interface javax.jms.ServerSession
javax.jms.JMSException
- if a JMS error occurs.public void start()
start
in interface javax.jms.ServerSession
start
in class java.lang.Thread
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread