Author |
Message
|
LH33 |
Posted: Tue Apr 12, 2005 8:37 am Post subject: Message flow writing a file? |
|
|
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 |
|
 |
malammik |
Posted: Tue Apr 12, 2005 9:28 am Post subject: |
|
|
 Partisan
Joined: 27 Jan 2005 Posts: 397 Location: Philadelphia, PA
|
|
Back to top |
|
 |
LH33 |
Posted: Tue Apr 12, 2005 9:31 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Apr 12, 2005 9:39 am Post subject: |
|
|
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 |
|
 |
LH33 |
Posted: Tue Apr 12, 2005 9:43 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Apr 12, 2005 9:47 am Post subject: |
|
|
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 |
|
 |
klabran |
Posted: Tue Apr 12, 2005 11:10 am Post subject: |
|
|
 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 |
|
 |
LH33 |
Posted: Tue Apr 12, 2005 11:28 am Post subject: |
|
|
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 |
|
 |
klabran |
Posted: Tue Apr 12, 2005 12:22 pm Post subject: |
|
|
 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 |
|
 |
ashoon |
Posted: Tue Apr 12, 2005 4:58 pm Post subject: simple text file output |
|
|
Master
Joined: 26 Oct 2004 Posts: 235
|
why not just use the trace node?!? |
|
Back to top |
|
 |
martinrydman |
Posted: Wed Apr 13, 2005 12:45 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Wed Apr 13, 2005 4:22 am Post subject: Re: simple text file output |
|
|
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 |
|
 |
Kirk |
Posted: Thu Apr 14, 2005 11:45 am Post subject: |
|
|
Newbie
Joined: 14 Apr 2005 Posts: 1
|
LH33
The program would be best written in Klingon. |
|
Back to top |
|
 |
|