|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface implmented by all RequestCommands and specifies that they must implement the 'execute' method which returns a JMS Message. These commands will be executed by the PointToPointConsumer when the JMSReplyTo property on a JMS message is not empty. The message returned by the RequestCommand will be returned to the calling application by the PointToPointConsumer.
SyncCommand| Method Summary | |
javax.jms.Message |
execute(int messageNumber,
javax.jms.Message aMessage)
Method used to implement business logic specific to a message or set of messages consumed by a OpenEAI PointToPointConsumer. |
| Method Detail |
public javax.jms.Message execute(int messageNumber,
javax.jms.Message aMessage)
throws CommandException
CommandException. - Generally, this exception should only ever be thrown if the Command
has trouble turning the message body of the JMS Message passed to the execute method into an XML Document (org.jdom.Document).
Any other error encountered by the command should be handled accordingly by returning a
Reply document with errors indicating the nature of the problem.
CommandExceptionSyncCommand.execute
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||