Posted: Sun Dec 21, 2008 9:46 pm Post subject: Problems calling Java method in ESQL with input REFERENCE
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.
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