|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java Value Object Mapping Help |
« View previous topic :: View next topic » |
Author |
Message
|
skediyal |
Posted: Fri Mar 17, 2006 7:46 am Post subject: Java Value Object Mapping Help |
|
|
Newbie
Joined: 02 Nov 2005 Posts: 7
|
Hi, I want to map Java value object to XML or COBOL copy book in WBI mapping. Is it possbile to create such mapping? If it is possible to do it then how should i import java file in WBI. I am familiar with how to import cobol copybook into WBI.
My requirement is that the J2EE applicaton put the java value object in MQ queue, and the input queue node in WBI read the java message and process it using the mapping defined earlier.
I would greatly appreciate the input on this matter..
Thanks in advance.
S |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 17, 2006 3:27 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Please define "java object".
What mechanism are you using to put it onto a queue? (and if you answer "Using JMS", then I won't help you any more).
You need to be very specific about how you are trying to do this - and I suspect that means that you will have to learn a lot more about Java than you want to.
I guarantee, though, that the fastest solution to your problem is to use JAXB or Caster or some other Java to XML binding solution to turn your Java object into XML and then handle it in WBI as XML. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
skediyal |
Posted: Fri Mar 17, 2006 5:53 pm Post subject: More Java value object Mapping with Cobol copy book |
|
|
Newbie
Joined: 02 Nov 2005 Posts: 7
|
Hi,
Thanks for the reply.
We are trying to put Java value object in queue using JMS. The messge will be consumed by WBI.
We could code the java object to XML transformation using JAXB. In order to improve performance i want to eleminate extra step of converting java value object to XML , and put value object directly in WBI and let WBI take care of conversion of java object to cobol copy book.
I am familiar with XML to Copy book transformation in WBI. But i was wondering if it feasible to map java value object to cobol copy book in WBI flow.
Also if some one knows a tool/utility which can convert java value object to cobol copy book in java application itself, rather than using WBI to do this task.
--S |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Mar 17, 2006 8:30 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
That's a tall order. What do you mean with java value object.
Are you passing an object in an object Message?
This really needs to be resolved before the message hits the bus or the object must contain some method for outputting it in xml.
Anyhow you would have to reconvert the message content into a stream and extract the object from the stream....
Your best shot is probably to do this in jave and put the serialized object in XML on the queue.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Mar 18, 2006 6:39 am Post subject: Re: More Java value object Mapping with Cobol copy book |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
skediyal wrote: |
Hi,
Thanks for the reply.
We are trying to put Java value object in queue using JMS. The messge will be consumed by WBI. |
What did I say? That if you answered "Using JMS", then I would not help you any more.
So why did you answer "Using JMS"? THIS IS NOT THE QUESTION. WE KNEW YOU WERE USING JMS.
The question remains. And you'll notice that FJ repeated it. "What do you mean with java value object. "
As I said, answering this question may require you to learn more about Java than you want to know. If you don't want to learn more about Java, then stop right now and use JAXB to transform your data to XML.
skediyal wrote: |
We could code the java object to XML transformation using JAXB. In order to improve performance i want to eleminate extra step of converting java value object to XML , and put value object directly in WBI and let WBI take care of conversion of java object to cobol copy book. |
Why do you possibly think that you will improve performance if you eliminate this step? All you would be doing is moving the transformation of the Java object into a logical message tree (all data manipulated in WMB is turned into a logical message tree first) from inside your Java code to inside WMB.
What performance criteria do you have to meet?
skediyal wrote: |
Also if some one knows a tool/utility which can convert java value object to cobol copy book in java application itself, rather than using WBI to do this task. |
The only tool I know of is "The java programming language". But the problem seems to be that one has to be a programmer to use that - and you aren't acting like a programmer.
Also, you need to be more clear with us on one other point. EXACTLY which "WBI" product are you trying to use to perform this transformation? WBI Message Broker version 5? WebSphere Message Broker v6? WBI Server Foundation? WebSphere Process Server? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|