Author |
Message
|
sreekanth1248 |
Posted: Fri Dec 15, 2006 9:09 pm Post subject: Wat wil be the solution With JMS??? |
|
|
Newbie
Joined: 11 Dec 2006 Posts: 5 Location: Bangalore
|
Hi all,
Ican able to post the MQmessage to Queue by using MQ API.
And iam getting the message from the queue from that Queue.
But i cant able to get that message in the queue properly using JMS API .
When receiving message from the queue i was getting little message and its showing somenumber of bytes are ommitted. While getting the same meaage by using the application developed in MQAPI , Iam getting the full message Content.
My requirement is post ing the message queue calss should use MQ API.
While receiving it i need to use JMS only?
when using JMS for receiving its displaying all the message properties , but the some message content is ommiting.
When using MQ API for receiving message iam getting the full message content.
Kindly suggest me somthing??? |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Dec 16, 2006 3:29 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Read the Using Java manual.
Look at the JMS Sample Programs that come with MQ, and are likely installed on your machine. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
wschutz |
Posted: Sat Dec 16, 2006 4:01 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Quote: |
i was getting little message and its showing somenumber of bytes are ommitted. |
Can you be more specific? What exactly is missing? _________________ -wayne |
|
Back to top |
|
 |
sreekanth1248 |
Posted: Mon Dec 18, 2006 2:58 am Post subject: the message content missing, |
|
|
Newbie
Joined: 11 Dec 2006 Posts: 5 Location: Bangalore
|
Obtained ConectionFactory: com.ibm.mq.jms.MQQueueConnectionFactory@14e70e51
Conection created successfully
Receiver objects created for given queue : queue://MQD1/DEVT.TWK.TEM.TEM.TWKQUEUE
Connection Started
Received Reply message is:
JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID: ID:414d51204d5144312020202020202020457ebc9f2000ba01
JMSTimestamp: 1166439474040
JMSCorrelationID:ID:414d51214e45575f53455353494f4e5f434f5252454c4944
JMSDestination: null
JMSReplyTo: queue://MQD1/DEVT.TWK.TEM.TEM.TWKQUEUE
JMSRedelivered: false
JMS_IBM_PutDate:20061218
JMSXAppID:MQSeries Client for Java
JMS_IBM_Format:MQSTR
JMS_IBM_PutApplType:28
JMS_IBM_MsgType:8
JMSXUserID:mqm
JMS_IBM_PutTime:10575404
JMSXDeliveryCount:1
<Report>
<SenderInfo>
<Doc>
<SerialNo>1</SerialNo>
<RefNum>70920020000W200611151012</RefNum>
</
Another 277 character(s) omitted
All queue objects are closed successfully
The status returned:successfully.
Above specified is the output of JMS , wen receiving message.
Here the xml file contains some more part. While reciving it in mQ API iam getting ful content.
But wen receiving through JMS iam getting the above out put. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Dec 18, 2006 3:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
So far you are showing a lot of attributes. Did you ever set the message body as in msg.setText(myxmlcontent) and retrieve it as in myxml = msg.getText()?
Remember that the usr folder in the RFH header is not appropriate to contain a full fledged xml message. It can only hold property=value pairs...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
vmcgloin |
Posted: Mon Dec 18, 2006 4:58 am Post subject: |
|
|
Knight
Joined: 04 Apr 2002 Posts: 560 Location: Scotland
|
Sorry if this is way off the mark, but could it be that the rest of the message is there but that what you are using to display/print the message is telling you that this is just the start and there are 277 more characters that it is not showing you due to truncation? |
|
Back to top |
|
 |
|