Author |
Message
|
bijesh |
Posted: Tue Jan 30, 2007 8:14 pm Post subject: Working with Message set in Java compute node |
|
|
Acolyte
Joined: 30 Jan 2007 Posts: 66
|
Hi all,
I'm quite new to WBIMB. Can anyone throw some lights on using Message sets in Java compute node?
Thanks in advance
Bijesh |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 31, 2007 2:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's not any different.
The Java API for WMB only gives you access to the logical message tree, just like ESQL only gives you access to the logical message tree. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bijesh |
Posted: Wed Jan 31, 2007 4:19 am Post subject: |
|
|
Acolyte
Joined: 30 Jan 2007 Posts: 66
|
the scenario is like this.
I want to make use of a message set in the Java compute node to read the result of a stored procedure. I'm not able to find a way for this.
The result of the stored procedure is stored as a string. how can I propagate this string to the next node with out changing the format of the String. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 31, 2007 4:21 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
How would you do this in ESQL? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bijesh |
Posted: Wed Jan 31, 2007 4:40 am Post subject: |
|
|
Acolyte
Joined: 30 Jan 2007 Posts: 66
|
I'm using Java compute node. I'm not using ESQL here and I'm not sure how can I do the same in ESQL also.
now once I get the result of the store procedure in the string variable i'm using substring to get different fields and creating an XML out of it. Then I'm propagating it to the next node, that is an MQOutput node.
Instead of using substring to get different fields, I thought I can make use of Message set and read the result of the stored procedure n pass it on.
Hope you understood the scenario. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 31, 2007 4:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
bijesh |
Posted: Wed Jan 31, 2007 5:21 am Post subject: |
|
|
Acolyte
Joined: 30 Jan 2007 Posts: 66
|
That helped me a lot. Thanks a lot. |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Jan 31, 2007 5:54 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Jan 31, 2007 5:58 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If bijesh follows his JCN with a Validate node... _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|