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 » Wat wil be the solution With JMS???

Post new topic  Reply to topic
 Wat wil be the solution With JMS??? « View previous topic :: View next topic » 
Author Message
sreekanth1248
PostPosted: Fri Dec 15, 2006 9:09 pm    Post subject: Wat wil be the solution With JMS??? Reply with quote

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
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Sat Dec 16, 2006 3:29 am    Post subject: Reply with quote

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
View user's profile Send private message
wschutz
PostPosted: Sat Dec 16, 2006 4:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
sreekanth1248
PostPosted: Mon Dec 18, 2006 2:58 am    Post subject: the message content missing, Reply with quote

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
View user's profile Send private message Yahoo Messenger
fjb_saper
PostPosted: Mon Dec 18, 2006 3:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
vmcgloin
PostPosted: Mon Dec 18, 2006 4:58 am    Post subject: Reply with quote

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
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 » Wat wil be the solution With JMS???
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.