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 » WBI Java Transformation

Post new topic  Reply to topic
 WBI Java Transformation « View previous topic :: View next topic » 
Author Message
Giridhar
PostPosted: Wed Oct 31, 2007 1:52 pm    Post subject: WBI Java Transformation Reply with quote

Apprentice

Joined: 23 Nov 2005
Posts: 46

Hi,

I have to transform some COBOL data to Java using WBIMB 6.0. Can I direcly map the data and use Java nodes to import thecopybook and filter data for transformation or should I first convert it into XML?

Thank You
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Wed Oct 31, 2007 2:36 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You "can" do whatever you want, works for you and is efficient.

If it is best practices you seek....
you might want to get the cobol msg using a message set created from the copybook and map it to your output structure...

Have fun...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Wed Oct 31, 2007 3:50 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I have to transform some COBOL data to Java
What do you mean by 'to Java'? What's the output format?

as fjp_saper said, WMB has excellent support for transforming COBOL data using the MRM parser. Can you explain why that does not meet your needs?
Back to top
View user's profile Send private message
Giridhar
PostPosted: Wed Oct 31, 2007 5:59 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Nov 2005
Posts: 46

'Java' as in J2EE applications......MDBs for DB queries
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Wed Oct 31, 2007 7:39 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

kimbert wrote:
Quote:
I have to transform some COBOL data to Java
What's the output format?

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Thu Nov 01, 2007 1:17 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I presume ''MDBs' are Message-Driven Beans. Most people do the DB queries direct from their message flow, rather than creating an MDB and sending it to a J2EE app.
I think your best solution is to parse the COBOL message using the MRM parser ( so you'll need to create a message set and import the copybooks to create message definitions ). That will give you a message tree containing the parsed data. Then you can use a JavaCompute node to construct your MDB and do the query.

Somebody else may be able to suggest a better solution.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Nov 01, 2007 2:24 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Kimbert; we are using a construct like Giridhar is suggesting. However the message is transformed into a SOAP message by the broker. The MDB reads the SOAP message, transforms it into java objects (JAXB/JAXP/Axis) and performs the DB operations.

Advantage: your DB operations are scalable independently from the flow.
You could have 1 flow satisfy the volume but need 5 MDB instances to keep up with the volume for the DB operations...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Nov 01, 2007 5:07 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Which is all well and good if you already have a J2EE App Server in the environment, and have staff and time to build an entirely separate application to do a database insert.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
rajmq
PostPosted: Thu Nov 01, 2007 7:23 am    Post subject: Reply with quote

Partisan

Joined: 29 Sep 2002
Posts: 331
Location: USA

How do we enable the broker & MDB link ?

One approach is we can connect the WAS JMS queue using broker jms nodes or WAS websphere link.

Is it any other way ?

TIA
_________________
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified System Administrator - WebSphere Business Integration Message Broker V6.0
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Nov 01, 2007 7:24 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Um.

MQ.
_________________
I am *not* the model of the modern major general.
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 » WBI Java Transformation
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.