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 » Calling java procedure that uses Dataobject input

Post new topic  Reply to topic
 Calling java procedure that uses Dataobject input « View previous topic :: View next topic » 
Author Message
wmb_wps_soa
PostPosted: Thu Oct 29, 2015 5:45 am    Post subject: Calling java procedure that uses Dataobject input Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Hi All,

I am trying to call a java procedure from ESQL (IIBv10). Java method has a DataObject (commonj.sdo.DataObject) input parameter, and I am passing a tree as REFERENCE while calling the java procedure. Is this the way how should we call the java procedure that has DataObject input?

Is DataObject parser in IIB different than Java DataObject?

Any input on this subject is highly appreciated.


Thanks
Back to top
View user's profile Send private message
timber
PostPosted: Thu Oct 29, 2015 5:50 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Quote:
I am trying to call a java procedure from ESQL (IIBv10).
Go ahead. Make sure that you understand what the java procedure expects ( it will be documented ). Compare that with what your message flow provides. Do a gap analysis, and write code to turn your message tree into something that is compatible with the java procedure.
Alternatively, explore native product facilities for handling IDocs.
Back to top
View user's profile Send private message
wmb_wps_soa
PostPosted: Thu Oct 29, 2015 6:02 am    Post subject: Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Thanks timber.

Its not for iDoc or anyother adapter. The java code is taken from WESB as part of WESB to IIBv10 migration. In the java code, its using an API to perform database operations (client dont want to convert the java API's for database operations to storedprocedures or direct SQL's) to an application database. So had to go with the same java code.

Since the java method accepts DataObject as input, my question was how can we pass a DataObject from ESQL to Java procedure? Just by using REFERENCE, will it work?

Thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 29, 2015 6:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You will have to use a wrapper procedure to map the incoming message tree into an instantiated DataObject object...
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
wmb_wps_soa
PostPosted: Thu Oct 29, 2015 6:10 am    Post subject: Reply with quote

Acolyte

Joined: 19 Feb 2010
Posts: 65
Location: Detroit,Michigan,USA.

Thanks mqjeff,

I will try that one.
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 » Calling java procedure that uses Dataobject input
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.