Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQS+JMS+2K 1 line XML file=0 received

Status
Not open for further replies.

daveupdike

Programmer
Jan 25, 2001
3
US
As stated we're using MQSeries and JMS and all is fine until our user places a XML file on our queue with EVERYTHING on one line. It's about a 2K+ file. The file gets placed on the queue OK, but when we go to receive() it off of there we end up with nothing. Taking this file and hand placing eof's and it works. The user doesn't want to change his code.

I've read on the internet about a 1K dfault size and other things but the one it looks like I need is to use the MQGET and specifiy the max message length (in my case about 2000 but it but 20000 or higher). The Java string will handle this size but it's not getting that far.

We're currently using JMS and the QueueReceiver.receive() method has no param for the max message length, just a time out value.

Has anyone run into this before? Do we have to nix JMS and hand code MQGET's, etc? Any suggestions?

Thanks,
Dave Updike
dupdike@popmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top