ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » processing object message

Post new topic  Reply to topic
 processing object message « View previous topic :: View next topic » 
Author Message
surendra
PostPosted: Sat Aug 28, 2004 9:33 am    Post subject: processing object message Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sat Aug 28, 2004 9:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
kirani
PostPosted: Sat Aug 28, 2004 9:53 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
surendra
PostPosted: Sat Aug 28, 2004 10:14 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Sat Aug 28, 2004 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Rockon
PostPosted: Sat Aug 28, 2004 11:18 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Sat Aug 28, 2004 1:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rockon
PostPosted: Sat Aug 28, 2004 4:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sat Aug 28, 2004 10:05 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

This might help,
http://www-306.ibm.com/software/integration/mqfamily/library/manualsa/
_________________
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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » processing object message
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.