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 » General IBM MQ Support » how to read jms message using dotnet

Post new topic  Reply to topic
 how to read jms message using dotnet « View previous topic :: View next topic » 
Author Message
bhu
PostPosted: Thu Jan 17, 2013 10:21 am    Post subject: how to read jms message using dotnet Reply with quote

Novice

Joined: 27 Jun 2006
Posts: 19

one of our client is dropping message in jms format using JAVA.
we have dotnet code which reads msg in a regular format, when we use the same code in here all i get is RFH any idea what need to be done to get the proper msg out.. may be parsed..

queue.Get(message);
System.Console.WriteLine(message.ReadString(message.MessageLength));

thank you
- bhu
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 17, 2013 10:40 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Tell them to set targetClient=1 when sending the message to you.

OR

Adjust your .NET code to know how to read and skip the RFH header.

OR

migrate to v7 where this doesn't come out as an RFH header.

OR

switch to using XMS.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Jan 17, 2013 11:08 am    Post subject: Re: how to read jms message using dotnet Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

bhu wrote:
one of our client is dropping message ...

I presume you mean putting a message, yes?

Please try to use common terminology, as found in the WebSphere MQ documentation and/or InfoCenter.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
bhu
PostPosted: Thu Jan 17, 2013 1:55 pm    Post subject: Reply with quote

Novice

Joined: 27 Jun 2006
Posts: 19

yes put message. bruce2359

thanks mqjeff i took the substring from </jms> which gives me the DATA.
not the best solution but for now that is the work around.

still looking for a better way.
-bhu
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jan 18, 2013 6:08 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

bhu wrote:
still looking for a better way.


The ones quoted in this thread are pretty good:

Quote:
Tell them to set targetClient=1 when sending the message to you

migrate to v7 where this doesn't come out as an RFH header

switch to using XMS


I think there's probably a cleaner way to skip the headers.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Jan 18, 2013 6:27 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Using V7 if you set the right queue open option, you can request the RFH as message properties....
Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » how to read jms message using dotnet
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.