Author |
Message
|
maxmq |
Posted: Wed Jan 26, 2011 9:28 am Post subject: dynamic queue in jcn |
|
|
Newbie
Joined: 18 Jan 2011 Posts: 3
|
i want to dynamically place the message into a queue based on the value of an xml tag in body..eg:
<emp>
<details>
<name>abc</name>
<id>1</id>
</details>
<emp>
i.e. if id is 1 then in q1 else in q2
plz help..i have to do this in java compute node.
thanks in advance!!!! |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jan 26, 2011 9:35 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You do the same thing you would do in ESQL - you set the right thing in the right part of the tree to control the queue that the MQOutput node will use.
Except you use the Java Broker API to set this value rather than ESQL.
It's very straight forward. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 26, 2011 9:39 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
You do the same thing you would do in ESQL - you set the right thing in the right part of the tree to control the queue that the MQOutput node will use. |
And configure the MQOutput node accordingly of course.
mqjeff wrote: |
It's very straight forward. |
Still no sign of the training I recommeded here then?  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
maxmq |
Posted: Wed Jan 26, 2011 9:50 am Post subject: |
|
|
Newbie
Joined: 18 Jan 2011 Posts: 3
|
i am still learning...
a sample would be of great help  |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 26, 2011 9:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
maxmq wrote: |
i am still learning... |
Learning is good. Training is better. Like I said, WMB is not simple.
maxmq wrote: |
a sample would be of great help  |
Write it in ESQL, then think about how that translates into Java. Much as my associate indicated.
Think of it as a learning exercise.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|