|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.jms.asf.StdServerSession
An implementation of ServerSession.
Created: Thu Dec 7 18:25:40 2000
Method Summary | |
Session (src) |
getSession()
Returns the session. |
void |
onMessage(Message (src) 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 Session (src) getSession() throws JMSException (src)
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 ServerSession (src)
JMSException (src)
- Description of Exceptionpublic void run()
run
in interface java.lang.Runnable
public void onMessage(Message (src) msg)
onMessage
in interface MessageListener (src)
msg
- the message passed to the listenerpublic void start() throws JMSException (src)
start
in interface ServerSession (src)
JMSException (src)
- No listener has been specified.
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |