|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.pvm.internal.ejb.CommandReceiverMDB
public class CommandReceiverMDB
Message driven command receiver.
The command receiver listens for messages on the destination established
during deployment. Upon delivery, this bean extracts a command from the message according to the format described in the
onMessage
method.
If the message does not match the expected format, it is forwarded to the
message destination referenced by jms/DeadLetterQueue
. No
further processing is done on the message.
After extraction, the receiver dispatches the command to the
local command executor specified by the EJB
reference ejb/LocalCommandExecutor
.
In case the incoming message includes a replyTo
destination, the
result of the command execution is wrapped into a message and sent there. The
resource manager connection factory reference
jms/CommandConnectionFactory
specifies the factory used to
obtain JMS connections.
Constructor Summary | |
---|---|
CommandReceiverMDB()
|
Method Summary | |
---|---|
void |
ejbCreate()
|
void |
ejbRemove()
|
void |
onMessage(javax.jms.Message message)
Processes a command message. |
void |
setMessageDrivenContext(javax.ejb.MessageDrivenContext messageDrivenContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandReceiverMDB()
Method Detail |
---|
public void onMessage(javax.jms.Message message)
The incoming messages must conform to one of the following formats.
Command
interface. The header properties of the message, if any, are ignored.jobId
of type long
which references a
saved job that is outstanding for execution. The body of
the message, if any, is ignored.
onMessage
in interface javax.jms.MessageListener
public void setMessageDrivenContext(javax.ejb.MessageDrivenContext messageDrivenContext)
setMessageDrivenContext
in interface javax.ejb.MessageDrivenBean
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.MessageDrivenBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |