|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Messages with RFH2 Header |
« View previous topic :: View next topic » |
Author |
Message
|
Dhinesh S V |
Posted: Thu Sep 01, 2011 10:34 pm Post subject: MQ Messages with RFH2 Header |
|
|
Newbie
Joined: 17 Oct 2010 Posts: 8
|
Hi all,
I am trying to put a message into MQ queue with RFH2 header. I am using a jmsQueue(logical queue in Websphere Application Server) to push the message from an MDB deployed in WAS.
My problem here is , whenever i add any property , it comes in <usr> folder in the header. But I need the property to be under the <psc> folder.
I need a the following content to be in my RFH2 ,
<psc><Command>Publish</Command><Topic>TopicString</Topic>
Am i missing something here . . . Please advice !!! |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 02, 2011 4:17 am Post subject: Re: MQ Messages with RFH2 Header |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Dhinesh S V wrote: |
Am i missing something here . . . Please advice !!! |
Firstly, be aware my Java is not strong so view my comments in that light.
Secondly, what you're trying to add is not a property but a publication command. So I would have expected that rather than adding a user property (which will be carried in <usr>) you need to identify to WAS that your message payload is in fact a publication associated with a topic of TopicString.
How you do that? You need a better Java person than me. With luck, you are that Java person.....
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Sep 02, 2011 7:05 am Post subject: Re: MQ Messages with RFH2 Header |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Dhinesh S V wrote: |
Hi all,
I am trying to put a message into MQ queue with RFH2 header. I am using a jmsQueue(logical queue in Websphere Application Server) to push the message from an MDB deployed in WAS.
My problem here is , whenever i add any property , it comes in <usr> folder in the header. But I need the property to be under the <psc> folder.
I need a the following content to be in my RFH2 ,
<psc><Command>Publish</Command><Topic>TopicString</Topic>
Am i missing something here . . . Please advice !!! |
This sounds like you are trying to use Point to Point JMS (sending to a queue), when you should be using Pub/Sub (publishing to a topic).
Review your JNDI objects and lookup the relevant methods and examples.
The sun JMS tutorial is a good one...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shashikanth_in |
Posted: Tue Sep 06, 2011 8:46 pm Post subject: |
|
|
Centurion
Joined: 26 Feb 2009 Posts: 123
|
You could look at using MQ JMS to publish message? |
|
Back to top |
|
 |
Dhinesh S V |
Posted: Wed Sep 07, 2011 4:48 am Post subject: Trying with jms bound topic |
|
|
Newbie
Joined: 17 Oct 2010 Posts: 8
|
Hi
THank you all for your suggestions.
I am trying now to connect to MQ Topic using jms bound topic in WAS from my EJB application.
Will post the results once done !! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|