Author |
Message
|
kaitlyn |
Posted: Wed Dec 01, 2004 12:16 pm Post subject: MO71 put message "problem" |
|
|
Apprentice
Joined: 24 Nov 2004 Posts: 25
|
When I use the MO71 > Action>Put Message, I enter a long message "<XDatacapFile><XDatacapDataFeedType><Record><templateId>Template5</templateId><documentId>xcdser1222sdfasdfsd12312223123213d2221012</documentId><formtype>RequestAppeal</formtype><documentType>empfroi</documentType><twccNm>05100466</twccNm><dateReceived>03/02/2001</dateReceived><sequenceNm>123</sequenceNm><docMediaTypeCode>image/tiff</docMediaTypeCode><docSourceCode>CM</docSourceCode><createdBy>DATACAP</createdBy><createdOn>11/16/2004</createdOn><backFile>N</backFile></Record></XDatacapDataFeedType></XDatacapFile>" and when I put it in the queue, it only takes 99 characters (stops at ><documentId>xcdser122). When I look at the queue's properties, it indicates that it can take over 4 million (don't remember the exact number). Any way I can get this whole message into one message into a queue? Is there a setting somewhere that I am missing that tells it only 99 at a time? |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 01, 2004 4:08 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
With an XML message you are probably better off entering it into a file and using amqput(c) to put the message to the queue.
Enjoy  |
|
Back to top |
|
 |
csmith28 |
Posted: Wed Dec 01, 2004 5:05 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
What's up with the word wrap? _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 01, 2004 5:08 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Some controls have a problem with text longer than xxx and no CR/LF which is typical of XML messages.
Its a rendering problem.
Enjoy  |
|
Back to top |
|
 |
kaitlyn |
Posted: Thu Dec 02, 2004 8:13 am Post subject: |
|
|
Apprentice
Joined: 24 Nov 2004 Posts: 25
|
OK, now I'm confused. Here's the command I am using:
/usr/mqm/samp/bin/amqsput ScannedDocs <test.xml
where test.xml is the input xml which contains everything that is in my first message. Here's what happens:
1) If I have the xml file contain one long continuous string (as in my first message), I still get the same results (99 characters per message with multiple messages).
2) If I have the xml file contain carriage returns (one start/end tag per line), it puts one message per line (just like the file has it) rather that treating the entire file as ONE message!
HELP!!!!! What now?  |
|
Back to top |
|
 |
EddieA |
Posted: Thu Dec 02, 2004 9:12 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Those programs only have a buffer of around 80, or 100 bytes.
Try grabbing the IH03 SupportPac. Then, once you have the message saved in a file, you can use rfhutil(c) to read that file, then PUT the message.
Or take a look at the "q" program. (Can't remember the SupportPac name), which now also has the ability to read from a file.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Dec 02, 2004 5:39 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Tell you the truth I myself use a little java utility for those purposes....
Enjoy  |
|
Back to top |
|
 |
|