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 » Logging XML file in WMQI

Post new topic  Reply to topic
 Logging XML file in WMQI « View previous topic :: View next topic » 
Author Message
Bharat
PostPosted: Tue Apr 27, 2004 7:20 am    Post subject: Logging XML file in WMQI Reply with quote

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
View user's profile Send private message
Missam
PostPosted: Tue Apr 27, 2004 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Bharat
PostPosted: Tue Apr 27, 2004 11:58 am    Post subject: Logging XML file in WMQI Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 27, 2004 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bharat
PostPosted: Tue Apr 27, 2004 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 27, 2004 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Missam
PostPosted: Tue Apr 27, 2004 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
fazz
PostPosted: Tue Apr 27, 2004 11:31 pm    Post subject: Reply with quote

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
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 » Logging XML file in WMQI
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.