Author |
Message
|
surendra |
Posted: Sat Aug 28, 2004 9:33 am Post subject: processing object message |
|
|
Newbie
Joined: 16 Jul 2004 Posts: 7
|
Hi All,
A message is coming into the queue in the form of JMS object. this object has attributes ID, firstname, lastname and age. I need to process this object in the integrator and put those attributes into database DB2. at the same time i would like to convert that message into XML. please help me with your ideas.
Thanx. |
|
Back to top |
|
 |
kirani |
Posted: Sat Aug 28, 2004 9:51 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Moved to WMQI Forum. Please ask WMQI related questions in WMQI Forum. |
|
Back to top |
|
 |
kirani |
Posted: Sat Aug 28, 2004 9:53 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
What version of WMQI are you using? There are certain JMS message types that be parsed by WMQI. You can then convert those messages to XML format by writing some ESQL code. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
surendra |
Posted: Sat Aug 28, 2004 10:14 am Post subject: |
|
|
Newbie
Joined: 16 Jul 2004 Posts: 7
|
WMQI version is 2.1. CSD 5. The message is a JMSObject and Iam wondering if I can use JMSMap or JMSStream to process this object.If not could you show a sample ESQL code to process this "certain" JMS object messages that you speak of.Thankyou |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Aug 28, 2004 10:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can only process JMSMap messages and JMSStream messages in WMQI version 2.1. You can't process JMSObject messages - they are completely different things.
Well, this is not quite true.
You can receive a JMSObject message as a BLOB, and pass that BLOB to a custom Java plug-in node, and then write code to unmarshall the JMSObject BLOB into a real Java Object again, and then write more code to process it.
But you're a lot better off telling the Java programmers who think it's a good idea to use a platform-independant and language independant messaging system like WebSphere MQ in a way that makes it platform and language DEPENDANT... to change their code and maybe use JAXB to marshall their objects to XML instead of JMSObject.
Tell them that their twenty minutes of work to do this is a lot cheaper than your four days of work to work around their design issues. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Rockon |
Posted: Sat Aug 28, 2004 11:18 am Post subject: |
|
|
Apprentice
Joined: 24 May 2004 Posts: 43
|
Hey Jeff,
You sound like you have done this before.Could you share some of the documentation links you referrred, to get this work done.
PS:Why would this guy want the design changed when he is getting paid for work like this and instead get the programmer get paid to make the changes.Its cheap for them but is money for him.
Thankyou
Cheers |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Aug 28, 2004 1:27 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Rockon wrote: |
Hey Jeff,
You sound like you have done this before.Could you share some of the documentation links you referrred, to get this work done.
PS:Why would this guy want the design changed when he is getting paid for work like this and instead get the programmer get paid to make the changes.Its cheap for them but is money for him.
Thankyou
Cheers |
The documentation is the same place it always has been.
Why would a consultant want his client to spend more money to do the wrong thing instead of spending less money to do the right thing? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Rockon |
Posted: Sat Aug 28, 2004 4:07 pm Post subject: |
|
|
Apprentice
Joined: 24 May 2004 Posts: 43
|
Jeff I understand the document is where its supposed to be :o .Question was "where" and if you can share it please do since the objective is to learn how to get around a problem like this.Thankyou,Cheers |
|
Back to top |
|
 |
kirani |
Posted: Sat Aug 28, 2004 10:05 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
|
Back to top |
|
 |
|