|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem with call java function using ESQL |
« View previous topic :: View next topic » |
Author |
Message
|
Ashok Kumar |
Posted: Thu Aug 22, 2013 4:29 am Post subject: Problem with call java function using ESQL |
|
|
Acolyte
Joined: 01 Jul 2013 Posts: 53
|
Hi WMB Developers,
I am facing a problem when I call a java function from ESQL only when when I pass REFERENCE as a Parameter.
my java code:
public static void createMqmdHeaders(MbElement p_outRoot, int p_ccsid,
int p_encoding) throws MbException {
MbElement l_mqmd = p_outRoot.createElementAsFirstChild("MQHMD");
l_mqmd.createElementAsFirstChild(MbElement.TYPE_NAME_VALUE, "Version",
new Integer(2));
l_mqmd.createElementAsFirstChild(MbElement.TYPE_NAME_VALUE, "Format",
MQC.MQFMT_RF_HEADER_2);
l_mqmd.createElementAsFirstChild(MbElement.TYPE_NAME_VALUE, "Encoding",
p_encoding);
l_mqmd.createElementAsFirstChild(MbElement.TYPE_NAME_VALUE,
"CodedCharSetId", p_ccsid);
}
My Esql Code:
CREATE PROCEDURE createMqmdHeaders(inout outRef REFERENCE,in ccsid INTEGER ,in encoding INTEGER) LANGUAGE JAVA
EXTERNAL NAME "com.walmart.utilities.global.MbMsgUtils.createMqmdHeaders";
I got Exception like this
The Java method could not be found..
Please give solution for exception.
Thanks.
Ashok A. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Aug 22, 2013 4:58 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Now is this any different from this post of earlier today?
http://www.mqseries.net/phpBB2/viewtopic.php?t=65169
Are the two of you working together on this?
double and triple posting won't get you a solution any sooner.
Have to searched this forum for similar problems? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
goffinf |
Posted: Thu Aug 22, 2013 5:00 am Post subject: |
|
|
Chevalier
Joined: 05 Nov 2005 Posts: 401
|
Please don't double post ! |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 22, 2013 5:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
smdavies99 wrote: |
Now is this any different from this post of earlier today?
http://www.mqseries.net/phpBB2/viewtopic.php?t=65169
Are the two of you working together on this?
double and triple posting won't get you a solution any sooner.
Have to searched this forum for similar problems? |
It's certainly a double post of this! _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|