|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.jms.asf.StdServerSession
An implementation of ServerSession.
Created: Thu Dec 7 18:25:40 2000
Method Summary | |
javax.jms.Session |
getSession()
Returns the session. |
void |
onMessage(javax.jms.Message msg)
Will get called from session for each message stuffed into it. |
void |
run()
Runs in an own thread, basically calls the session.run(), it is up to the session to have been filled with messages and it will run against the listener set in StdServerSessionPool. |
void |
start()
Start the session and begin consuming messages. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public javax.jms.Session getSession() throws javax.jms.JMSException
This simply returns what it has fetched from the connection. It is up to the jms provider to typecast it and have a private API to stuff messages into it.
getSession
in interface javax.jms.ServerSession
javax.jms.JMSException
- Description of Exceptionpublic void run()
public void onMessage(javax.jms.Message msg)
onMessage
in interface javax.jms.MessageListener
public void start() throws javax.jms.JMSException
start
in interface javax.jms.ServerSession
javax.jms.JMSException
- No listener has been specified.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |