|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to call a java method from ESQL? |
« View previous topic :: View next topic » |
Author |
Message
|
pathipati |
Posted: Mon Jun 18, 2007 5:49 pm Post subject: How to call a java method from ESQL? |
|
|
Master
Joined: 03 Mar 2006 Posts: 296
|
Is it possible to call a java method from ESQL (Compute Node)? If yes how? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 18, 2007 6:10 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
It's not possible to do this in version 2.1.
It's clearly documented how to do this in both version 5 and version 6.
In both version 5 and version 6, it has to be a static method. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pathipati |
Posted: Mon Jun 18, 2007 6:41 pm Post subject: |
|
|
Master
Joined: 03 Mar 2006 Posts: 296
|
Jeff,
Can you please post link to some samples... |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Mon Jun 18, 2007 11:14 pm Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
pathipati wrote: |
Jeff,
Can you please post link to some samples... |
Please...
Quote: |
It's clearly documented how to do this in both version 5 and version 6. |
Code: |
CREATE PROCEDURE getRecords (IN cursor REFERENCE, IN queue_in
)
RETURNS BOOLEAN LANGUAGE JAVA EXTERNAL NAME "javapackage.JAVACLASS.javastaticmethod";
|
Calling :
Code: |
SET success =getRecords (Environment.ZZZ,queue_in) ; |
or
Code: |
CALL getRecords (Environment.ZZZ,queue_in) ; |
_________________ Marcin |
|
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
|
|
|
|