Author |
Message
|
mira |
Posted: Wed Jul 23, 2003 5:13 pm Post subject: Help needed in putting bigger XML message |
|
|
Newbie
Joined: 25 Feb 2002 Posts: 9
|
I am trying to put a message into a remote queue using the local remote queue definition.
The message is in the form of XML message which is very big.
When I tried to put this message from the command prompt using amqsput command, the message is splitted up and going to the remote queue as multiple messages.
Please help me in putting message as a whole into the queue.
I have tried amqsputw, but the same is not available in the bin directory.
I am using MQSeries 5.3.
Thanks in advance..
mira.. |
|
Back to top |
|
 |
kirani |
Posted: Wed Jul 23, 2003 6:01 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You need to modify MQSeries\tools\c\samples\amqsput0.c program to fit your requirement. The source that comes with MQSeries puts each line as 1 message on the queue, and it can only put first 100 bytes of data. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
mrlinux |
Posted: Thu Jul 24, 2003 8:02 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
you could always strip all of the cr/lf from your xml file and use amqsput _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
EddieA |
Posted: Thu Jul 24, 2003 8:20 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Or use one of the programs from the Support Pacs. IH02 or IH03.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
mira |
Posted: Fri Jul 25, 2003 10:26 am Post subject: |
|
|
Newbie
Joined: 25 Feb 2002 Posts: 9
|
Thanks a lot for your valuable replies..
I will try the solutions mentioned above..
In the mean time I am using MQJ explorer..and also trying with JMS java program.
Thanks
mira |
|
Back to top |
|
 |
mira |
Posted: Wed Aug 06, 2003 4:30 pm Post subject: again facing the same problem.. |
|
|
Newbie
Joined: 25 Feb 2002 Posts: 9
|
My JMS program is working fine for the local queues.
When I try to put XML message (using MQ jms program--client) into remote queue definition on MQ Server/MQ queue Manager, the messsage is being truncated ..
the environment is as follows..
the QMgr and send and Receiver queues are residing on A.
Also a Qmgr and Send and Receiver queues are residing on B.
A and B are connected with channels and are having remote queue definitions.
Now I want to put message into send queue(which is remote queue definition on A to receiver queue of B) which ultimately flows to B.
What is happening is when I put message into send queue of A, the XML(big) message is being truncated.
I am using JMS program to put messages..
Please help me in putting big XML messages from MQ client without being truncated..
thanks in advance..
mira |
|
Back to top |
|
 |
|