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 » Problem with call java function using ESQL

Post new topic  This topic is locked: you cannot edit posts or make replies.
 Problem with call java function using ESQL « View previous topic :: View next topic » 
Author Message
Ashok Kumar
PostPosted: Thu Aug 22, 2013 4:29 am    Post subject: Problem with call java function using ESQL Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu Aug 22, 2013 4:58 am    Post subject: Reply with quote

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
View user's profile Send private message
goffinf
PostPosted: Thu Aug 22, 2013 5:00 am    Post subject: Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Please don't double post !
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 22, 2013 5:27 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Problem with call java function using ESQL
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.