|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.resource.adapter.jms.inflow.JmsServerSession
A generic jms session pool.
Constructor Summary | |
JmsServerSession(JmsServerSessionPool (src) pool)
Create a new JmsServerSession |
Method Summary | |
Session (src) |
getSession()
Return the ServerSession 's Session . |
void |
onMessage(Message (src) message)
Passes a message to the listener. |
void |
release()
Invoked by the work manager as a hint to stop processing |
void |
run()
|
void |
setup()
Setup the session |
void |
start()
Cause the Session 's run method to be called
to process messages that were just assigned to it. |
void |
teardown()
Stop the session |
void |
workAccepted(WorkEvent (src) e)
Invoked when work is accepted |
void |
workCompleted(WorkEvent (src) e)
Invoked when work is completed |
void |
workRejected(WorkEvent (src) e)
Invoked when work is rejected |
void |
workStarted(WorkEvent (src) e)
Invoked when work is started |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JmsServerSession(JmsServerSessionPool (src) pool)
pool
- the server session poolMethod Detail |
public void setup() throws java.lang.Exception
java.lang.Exception
public void teardown()
public void onMessage(Message (src) message)
MessageListener (src)
onMessage
in interface MessageListener (src)
message
- the message passed to the listenerpublic Session (src) getSession() throws JMSException (src)
ServerSession (src)
ServerSession
's Session
. This must
be a Session
created by the same Connection
that will be dispatching messages to it. The provider will assign one or
more messages to the Session
and then call start
on the ServerSession
.
getSession
in interface ServerSession (src)
JMSException (src)
- if the JMS provider fails to get the associated
session for this ServerSession
due
to some internal error.public void start() throws JMSException (src)
ServerSession (src)
Session
's run
method to be called
to process messages that were just assigned to it.
start
in interface ServerSession (src)
JMSException (src)
- if the JMS provider fails to start the server
session to process messages due to some internal
error.public void run()
run
in interface java.lang.Runnable
public void release()
Work (src)
release
in interface Work (src)
public void workAccepted(WorkEvent (src) e)
WorkListener (src)
workAccepted
in interface WorkListener (src)
e
- the eventpublic void workCompleted(WorkEvent (src) e)
WorkListener (src)
workCompleted
in interface WorkListener (src)
e
- the eventpublic void workRejected(WorkEvent (src) e)
WorkListener (src)
workRejected
in interface WorkListener (src)
e
- the eventpublic void workStarted(WorkEvent (src) e)
WorkListener (src)
workStarted
in interface WorkListener (src)
e
- the event
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |