|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The UPESListener
is an interface which should be implemented by
applications containing the actual UPES functionality.
Classes implementing this interface can register with an UPES.
The UPES uses the given interfaces for identifying for an incoming XML message
which listener is responsible for this message. The first listener which is
active (detected by the IsActive() method)
and claims the responsibility for the message
(detected by the IsResponsibleFor(InvokeProgramData msg) method) will be triggered
with a ProcessMessage(UPES u,InvokeProgramData msg) method call.
This sample implements only an interface to handle
InvokeProgram requests (this is interface provided by
MQSeries Workflow version 3.2.1 and higher)
UPES
Method Summary | |
java.lang.String |
getName()
Just a name to distinguish different listeners |
boolean |
IsActive()
The method IsActive signals the caller whether the listener is ready to accept messages or not. |
boolean |
IsResponsibleFor(InvokeProgramData msg)
The method IsResponsible signals the caller whether the listener is responsible for a given message or not. |
void |
ProcessMessage(UPES u,
MQHandler MQH,
InvokeProgramData msg)
ProcessMessage will be called when the listener has claimed the responsibility for a message. |
Method Detail |
public java.lang.String getName()
public boolean IsActive()
public boolean IsResponsibleFor(InvokeProgramData msg)
msg
- contains all information,
which was sent with the XML request.InvokeProgramData
,
UPES
public void ProcessMessage(UPES u, MQHandler MQH, InvokeProgramData msg)
u
- is a reference to the UPES which called the
listener for processing the message.
It can be used to put a response within the
same transaction to a target queue.MQH
- is the MQHandler, with which the reguest was gotten.msg
- is the request.UPES
,
InvokeProgramData
,
MQHandler
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |