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 » Message flow writing a file?

Post new topic  Reply to topic
 Message flow writing a file? « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Tue Apr 12, 2005 8:37 am    Post subject: Message flow writing a file? Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Can you have a message flow take XML and write it to a windows server on the same networK
Back to top
View user's profile Send private message
malammik
PostPosted: Tue Apr 12, 2005 9:28 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

yes but you would need to either write a custom java node or use jtext wbi connector.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
LH33
PostPosted: Tue Apr 12, 2005 9:31 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Can you point me to where I can find out more information on how to use the jtext wbi connector?

Thanks!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 12, 2005 9:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can also use a Java external procedure if you are using FP4 of 5.0.

A custom plug-in is likely going to be less complicated than using the JText adapter.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
LH33
PostPosted: Tue Apr 12, 2005 9:43 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Are there examples/documentation on writing a Custom Plug In Node to do something like this?

Thanks!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 12, 2005 9:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There are support packs that contain source code to custom plug-ins.

There's a PDF that describes how to write custom plug-ins.

I think someone has previously posted some sample code.

But code is only half the problem with plug-ins. The other half is registering with the Tooling.

You may simply be better off putting messages to a queue and using a stand-alone program to create the file.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
klabran
PostPosted: Tue Apr 12, 2005 11:10 am    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

That's what I have done Jeff. I have a program that creates a text file from reading a queue.
Back to top
View user's profile Send private message Visit poster's website
LH33
PostPosted: Tue Apr 12, 2005 11:28 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

What is the program written in that take sthe message from the queue and formats a text file?

Thanks!
Back to top
View user's profile Send private message
klabran
PostPosted: Tue Apr 12, 2005 12:22 pm    Post subject: Reply with quote

Master

Joined: 19 Feb 2004
Posts: 259
Location: Flagstaff AZ

VB.Net....

For converting to straight text files I modified the WBIM samples located at c:\Program Files\IBM\WebSphere MQ\Tools\dotnet\samples\VB to do this. These samples were installed with the control center.

For converting to XML files you could use the samples as a shell for reading the queue and then use the built-in .Net XMLStream or TextStream writer classes....

There is a .Net class library for reading/writing to queues. The sample files use this library.

Kevin
Back to top
View user's profile Send private message Visit poster's website
ashoon
PostPosted: Tue Apr 12, 2005 4:58 pm    Post subject: simple text file output Reply with quote

Master

Joined: 26 Oct 2004
Posts: 235

why not just use the trace node?!?
Back to top
View user's profile Send private message
martinrydman
PostPosted: Wed Apr 13, 2005 12:45 am    Post subject: Reply with quote

Centurion

Joined: 30 Jan 2004
Posts: 139
Location: Gothenburg, Sweden

Actually, you could. As part of a general logging scheme in our test environoment, I use the BITSREAM function to generate a string representation of the message I'm about to put on a queue, so I have a record of evry message that left a particular flow. Only draw-back is that the file-name is hard-coded and not dynamic.

/Martin
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Apr 13, 2005 4:22 am    Post subject: Re: simple text file output Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

ashoon wrote:
why not just use the trace node?!?

Because you can only specify a single, fixed file name for the tracenode, you can't specify a dynamic file name.

Because the tracenode keeps the file open once it has started running, and so other things can't move or rename the file, only copy the contents.

Because the trace output format is probably not what the receiver of the file wants.

Etc. Etc. Etc.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Kirk
PostPosted: Thu Apr 14, 2005 11:45 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2005
Posts: 1

LH33

The program would be best written in Klingon.
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 » Message flow writing a file?
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.