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, yieldprivate javax.jms.Session session
private boolean started
public DefaultServerSession(javax.jms.Session session)
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic javax.jms.Session getSession()
throws javax.jms.JMSException
getSession in interface javax.jms.ServerSessionjavax.jms.JMSException - if a JMS error occurs.public void start()
start in interface javax.jms.ServerSessionstart in class java.lang.Threadpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Thread