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 » IBM MQ Java / JMS » XML as Text Message

Post new topic  Reply to topic
 XML as Text Message « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Tue Dec 14, 2004 8:33 am    Post subject: XML as Text Message Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I am doing publish of an XML doc as a TextMessage using JMS. Creating XML text programmatically (not writing to a file) and assigning this text to TextMessage object. Getting this error while subscriber receives the same message:

JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 2
JMSExpiration: 0
JMSPriority: 4
JMSMessageID: ID:414d512044484f434c4d33202020202041b79ae520000720
JMSTimestamp: 1103040186608
JMSCorrelationID:ID:414d512044484f434c4d33202020202041ab982f20001a05
JMSDestination: topic://TOPIC1
JMSReplyTo: null
JMSRedelivered: false
JMS_IBM_PutDate:20041214
JMSXAppID:QMGR3
JMS_IBM_Format:MQSTR
JMS_IBM_PutApplType:26
JMS_IBM_MsgType:8
JMSXUserID:mqm
JMS_IBM_PutTime:16030672
JMSXDeliveryCount:1
<?xml version="1.0" encoding="UTF-8"?>
<changedpolicy xmlns:xsi="http://www.w3.org/2001/XMLSchema-in
Another 113 character(s) omitted


I tried to write the same xml to a file and it has exactly 113 characters remaining.


Any help, what am I missing?
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Dec 14, 2004 9:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I don't think you're missing anything. It looks like you are using system.out.println to print the message. WMQ only prints out the first part of the actual message text rather than all of it. In your example, this results in 113 characters being omitted from the print out.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
techno
PostPosted: Tue Dec 14, 2004 11:53 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Yes, I am doing System.out.println.

It works fine. Verifiied it by getting getText().

Thanks.
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 » IBM MQ Java / JMS » XML as Text Message
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.