|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
passing the Message Tree and ExceptionList to a task/script |
« View previous topic :: View next topic » |
Author |
Message
|
j1 |
Posted: Fri May 04, 2012 9:16 am Post subject: passing the Message Tree and ExceptionList to a task/script |
|
|
 Centurion
Joined: 23 Jun 2003 Posts: 139
|
Hi,
I have a bit of a peculiar situation for errorhandling, where I need to call a custom task/script and pass it the message tree and exceptionlist. I looked at the job execution node supportpac (IA9z) but that dosent fit the bill exactly. The only other options seem to be JCN or C++ custom node/ does anyone know of any sample code/patterns etc... that I can build upon for this? Im thinking it would be a call to the System in the JCN but how would i pass the message tree and ExceptionList? Appreciate the help.
Cheers |
|
Back to top |
|
 |
gecs |
Posted: Fri May 04, 2012 9:30 am Post subject: |
|
|
 Acolyte
Joined: 14 Nov 2007 Posts: 58
|
|
Back to top |
|
 |
mqjeff |
Posted: Fri May 04, 2012 11:12 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't pass the message tree and the exception list.
For one, they're not strings and command line prompts only allow you to send strings.
For another, they're in-memory objects that only exist inside the Broker process.
just like you can't put the logical message tree into an MQ message, you can't put the logical message tree into a call to a command line program.
Just like you CAN put a serialized copy of the logical message tree into an MQ message, you CAN put a serialized copy of the logical message tree into a call to a command line program.
But you need to stop everything, immediately, and throw your current set of requirements out the door.
Whatever program you are trying to call from the command line should be made to accept data from SOMETHING else - like a webservice call or an MQ queue or a flat file. Or even a JNI method or a CORBA call or etc. etc. etc. etc. etc.
THAT's what needs to change. Not your message flow. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|