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 » Calling Java Class via ESQL

Post new topic  Reply to topic
 Calling Java Class via ESQL « View previous topic :: View next topic » 
Author Message
HIMAGAR
PostPosted: Fri Apr 15, 2016 6:44 am    Post subject: Calling Java Class via ESQL Reply with quote

Novice

Joined: 05 Nov 2015
Posts: 18

Hi,

I need to call Java Class from my ESQL.
I have made a Java Project in the Toolkit and have given project reference to my Broker Project from where I need to call my Java Class.

like This :

CREATE PROCEDURE getUserDefinedConfigServProp( IN P1 CHARACTER)
LANGUAGE JAVA
EXTERNAL NAME "com.sampleproxy.test.ConfigService_Java.getUserDefinedConfigServProp";


CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE I INTEGER 1;
DECLARE J INTEGER;
--DECLARE result CHARACTER ;
CALL getUserDefinedConfigServProp('Configure');



but I am getting this error

Number:INTEGER:2943
Text:CHARACTER:Java class not found
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 15, 2016 6:54 am    Post subject: Re: Calling Java Class via ESQL Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

HIMAGAR wrote:
I am getting this error

Number:INTEGER:2943
Text:CHARACTER:Java class not found


What steps have you taken to ensure the class (which you defined in the ESQL code) is actually available to the runtime?

Or put another way, if you were calling this class from Java in a WAS server or similar, could you simply give the class name in the Java source code or would you have to put the jar file somewhere?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Apr 15, 2016 7:13 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Why are you using Java code to get a configurable property?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
HIMAGAR
PostPosted: Fri Apr 15, 2016 7:49 am    Post subject: Reply with quote

Novice

Joined: 05 Nov 2015
Posts: 18

What Should I use ?
I need to make a User defined Configurable Service in which I have to define some Look Up Table.
I have a restriction that I cannot use the Database.
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 » Calling Java Class via 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.