Author |
Message
|
Bharat |
Posted: Tue Apr 27, 2004 7:20 am Post subject: Logging XML file in WMQI |
|
|
 Acolyte
Joined: 14 May 2002 Posts: 61 Location: Reston, VA, USA
|
Hi,
I need to log the complete XML file i.e. passing thru MQSI v2.0.1. I'm planning to use a Trace node to log this into a file on Solaris box.
Could you please give me sample code to log the XML file in a Trace node?
Thanks,
Bharat |
|
Back to top |
|
 |
Missam |
Posted: Tue Apr 27, 2004 9:06 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
What do you mean by logging.Do you want to archive the message.?
or do you want to trace the message. |
|
Back to top |
|
 |
Bharat |
Posted: Tue Apr 27, 2004 11:58 am Post subject: Logging XML file in WMQI |
|
|
 Acolyte
Joined: 14 May 2002 Posts: 61 Location: Reston, VA, USA
|
I need to copy the XML file in to a file on hard disk (say a log file on solaris box) before putting that on a target queue. This should help me to have the exact copy of the request that I sent to the other application with time stamp. I appreciate your help.
Thanks,
Bharat |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 27, 2004 12:06 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Stick an ASBITSTREAM version of the message into a database, or use the Warehouse node, instead of trying to manhandle the Trace node or making use of a custom message->file node. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Bharat |
Posted: Tue Apr 27, 2004 3:12 pm Post subject: |
|
|
 Acolyte
Joined: 14 May 2002 Posts: 61 Location: Reston, VA, USA
|
Jeff,
Thanks for your advice. Could you please give the sample code for any one of those?
Thanks,
Bharat |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Apr 27, 2004 3:17 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
There's not really any sample code for using the warehouse node. You just set the appropriate properties.
Oh, but you're using 2.0.1. It may not have the warehouse node, and it won't have the ASBITSTREAM function. It should have the BITSTREAM function, but I don't know that for sure.
So my advice may not help for your platform, sorry!  _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Missam |
Posted: Tue Apr 27, 2004 5:41 pm Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
One method to store the entire message to a file is to add a flow order node in your message flow, connect one(first) terminal to a queue and write a simple program to poll the queue and write the message to a file. |
|
Back to top |
|
 |
fazz |
Posted: Tue Apr 27, 2004 11:31 pm Post subject: |
|
|
 Centurion
Joined: 20 Feb 2004 Posts: 144 Location: England
|
Depending on what platform you are running on, there is an FTPSend node which would allow you to FTP the message to a hard disk. |
|
Back to top |
|
 |
|