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 » Problems calling Java method in ESQL with input REFERENCE

Post new topic  Reply to topic
 Problems calling Java method in ESQL with input REFERENCE « View previous topic :: View next topic » 
Author Message
hoichee
PostPosted: Sun Dec 21, 2008 9:46 pm    Post subject: Problems calling Java method in ESQL with input REFERENCE Reply with quote

Newbie

Joined: 21 Dec 2008
Posts: 1

Hi,

I am trying to call a java method inside a ESQL function but it's throwing a Cannot Find Java method exception. The same function works when the input parameter is changed from REFERENCE to CHAR.

Here is the ESQL procedure:

CREATE COMPUTE MODULE Test_CallAudit
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE auditMessage CHAR;
DECLARE messageRef REFERENCE TO InputBody;

CALL Audit(messageRef) INTO auditMessage;

RETURN TRUE;
END;
END MODULE;

CREATE FUNCTION Audit( IN message REFERENCE )
RETURNS CHAR
LANGUAGE JAVA
EXTERNAL NAME "com.xxx.broker.audit.XXXAuditNode.audit";

Here is the java method I'm trying to invoke:

public class XXXAuditNode extends MbNode implements MbNodeInterface
{
public static String audit( MbElement message )
{
return "test string";
}
}

The jar file is included inside the bar file for deployment.

Can anyone see what is incorrect in the above code? Any help is appreciated.

Thanks .
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 » Problems calling Java method in ESQL with input REFERENCE
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.