ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » passing the Message Tree and ExceptionList to a task/script

Post new topic  Reply to topic
 passing the Message Tree and ExceptionList to a task/script « View previous topic :: View next topic » 
Author Message
j1
PostPosted: Fri May 04, 2012 9:16 am    Post subject: passing the Message Tree and ExceptionList to a task/script Reply with quote

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
View user's profile Send private message
gecs
PostPosted: Fri May 04, 2012 9:30 am    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2007
Posts: 58

You only want to know how tu pass a reference?
Review this link, is a procedure example about get "messageNumber" and "messageText" of ExceptionList (uses references).

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp

Hope this helps

Regards!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 04, 2012 11:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » passing the Message Tree and ExceptionList to a task/script
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.