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 » format conversion

Post new topic  Reply to topic
 format conversion « View previous topic :: View next topic » 
Author Message
Raj2000
PostPosted: Mon Sep 28, 2009 3:53 pm    Post subject: format conversion Reply with quote

Apprentice

Joined: 03 Aug 2009
Posts: 47

Is there any way that java objects can be converted to xml format in messsage broker??
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Sep 28, 2009 10:08 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Could you please give us an example of what you are trying to achieve.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 29, 2009 2:12 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yes.

It's the same way that any other data is converted to XML in Message Broker.

Use the Getters of the java object to retrieve the field values.

Construct a Logical Message Tree in the XMLNSC domain out of MbElement objects, and set the values of the right field into the right MbElement.

If you have Java objects in the first place, you are already deep in a JavaCompute node, and so you presumably already have a Java programmer handy. This is basic programming, with a very slight effort needed to understand the Mb Java API.

Or your Java architects have done something horribly and created ObjectMessages in JMS that they have written to a queue.

ObjectMessages are extremely bad practice, and are unportable in general.
Back to top
View user's profile Send private message
Raj2000
PostPosted: Tue Sep 29, 2009 5:21 pm    Post subject: Reply with quote

Apprentice

Joined: 03 Aug 2009
Posts: 47

Thank you guys for the valuable input!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » format conversion
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.