Author |
Message
|
harel |
Posted: Sun Jan 13, 2008 1:53 am Post subject: JMSOutput Node in MessageBroker |
|
|
Newbie
Joined: 13 Jan 2008 Posts: 3
|
Hi,
I am using a JMSOutput Node in message flow of MessageBroker.
When using this node, I fill the 'publication topic' (or 'destination queue') tab with the relevant topic (or queue).
I would like to publish data (through JMS) on different topics according to the message received at the message flow's input node (i.e., decide which publication topic to use according to the message received).
I understand that I could do it by using multiple JMSOutput nodes (each dedicated to a predefined topic), with a preceding decision node.
My question is whether there is a way to make a JMSOutput node publish a message on a topic on-the-fly (i.e., without statically specifying the topic in advance).
Regards,
Harel |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jan 13, 2008 2:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Why are you publishing through the JMSOutput node (letting the JMS provider implementation do the pub/sub and not through the publish node (letting the broker to the pub/sub) ?
It is then an easy manner as all you need to do is to edit the topic in the RFH2...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
harel |
Posted: Sun Jan 13, 2008 2:54 am Post subject: |
|
|
Newbie
Joined: 13 Jan 2008 Posts: 3
|
Thanks for the quick response.
I am publishing through the JMSOutput node since the clients I'm targetting are JMS subscribers. I am a MessageBroker novice, and I understand that publish node is not aimed for JMS publication, right? |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Jan 13, 2008 4:11 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What JMS Provider are you using? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
harel |
Posted: Sun Jan 13, 2008 4:16 am Post subject: |
|
|
Newbie
Joined: 13 Jan 2008 Posts: 3
|
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Jan 13, 2008 8:01 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What engine is acting as your pub/sub broker, in this configuration?
Is it your Message Broker?
Then you're doing a number of things entirely wrong.
1) You should use the plain MQ Output node to send messages to MQ
2) You should use the publication node to publish to the Message Broker pub/sub engine. OR, if you're really feeling complicated, you can put messages on SYSTEM.BROKER.CONTROL.QUEUE directly, but it's not a great idea. It's better than using JMSOutput, though.
It seems like you're not very experienced with Broker. You should talk to someone at your company who has more experience with Broker and ask them to clear up some of your confusions. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jan 13, 2008 1:39 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
harel wrote: |
Thanks for the quick response.
I am publishing through the JMSOutput node since the clients I'm targetting are JMS subscribers. I am a MessageBroker novice, and I understand that publish node is not aimed for JMS publication, right? |
Wrong. If you are using the right RFH2 header content your publication will look just like a JMS publication (With the MQ JMS provider)...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|