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 » Failure to call a Java Procedure

Post new topic  Reply to topic
 Failure to call a Java Procedure « View previous topic :: View next topic » 
Author Message
vsr
PostPosted: Tue Dec 19, 2006 7:55 am    Post subject: Failure to call a Java Procedure Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

Hi,

I am new to Message broker .I am trying to call a java procedure from the flow using MB V5.0.2 . Here is the code:

SET action = JDeptFilter('String');

Got error here which says 'Procedures can't be used as right-hand side in assignment' , is it wrong ?

I defined procedure JDeptFilter like this:

CREATE PROCEDURE JDeptFilter(IN DEPT_NUM CHARACTER)
RETURNS CHARACTER
LANGUAGE JAVA
EXTERNAL NAME "com.xxx.Class.myMethod";

but I am getting error saying syntax error saying ' Syntax Error. Valid Options include blah blah blah .. '

But I saw in the esql pdf using the same statements .. how can it be wrong ..
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 19, 2006 7:58 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Try using CALL.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vsr
PostPosted: Tue Dec 19, 2006 8:02 am    Post subject: Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

Jeff,

I tried using CALL JDeptFilter('String') INTO action;

Getting error again saying 'Syntax Error.Valid options include EXTERNAL '.

Any suggestions ?
Back to top
View user's profile Send private message
vsr
PostPosted: Tue Dec 19, 2006 8:51 am    Post subject: Reply with quote

Centurion

Joined: 04 Apr 2006
Posts: 104

Do i need to install any fix pack for this ?
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Dec 19, 2006 10:35 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Does your application follow the examples in the Info Center at this link?
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak04970_.htm

Jump down to "Java routine example 1"
_________________
Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3
Back to top
View user's profile Send private message AIM Address
JosephGramig
PostPosted: Tue Dec 19, 2006 10:39 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Note that you are declaring in ESQL with PROCEDURE, but you are using INTO that goes with FUNCTION in ESQL.
_________________
Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3
Back to top
View user's profile Send private message AIM Address
mgk
PostPosted: Tue Dec 19, 2006 2:13 pm    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

The ability for ESQL to CALL a Java method was only introduced in V5 fixpac 4.

Also INTO does belong with the CALL statement and is used to pickup the RETURN value from a FUNCTION or a PROCEDURE, it does not matter which as long at the routine being called is declared with a RETURNS clause.


Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » Failure to call a Java Procedure
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.