|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Calling java procedure that uses Dataobject input |
« View previous topic :: View next topic » |
Author |
Message
|
wmb_wps_soa |
Posted: Thu Oct 29, 2015 5:45 am Post subject: Calling java procedure that uses Dataobject input |
|
|
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 |
|
 |
timber |
Posted: Thu Oct 29, 2015 5:50 am Post subject: |
|
|
 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 |
|
 |
wmb_wps_soa |
Posted: Thu Oct 29, 2015 6:02 am Post subject: |
|
|
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 |
|
 |
mqjeff |
Posted: Thu Oct 29, 2015 6:06 am Post subject: |
|
|
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 |
|
 |
wmb_wps_soa |
Posted: Thu Oct 29, 2015 6:10 am Post subject: |
|
|
Acolyte
Joined: 19 Feb 2010 Posts: 65 Location: Detroit,Michigan,USA.
|
Thanks mqjeff,
I will try that one. |
|
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
|
|
|
|