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 from ESQL

Post new topic  Reply to topic
 Calling Java from ESQL « View previous topic :: View next topic » 
Author Message
wynnhtun
PostPosted: Wed Jun 16, 2010 2:02 am    Post subject: Calling Java from ESQL Reply with quote

Newbie

Joined: 19 May 2010
Posts: 3

Hi,

ESQL
CALL parseMessage(OutputLocalEnvironment.XMLNSC);

CREATE PROCEDURE parseMessage(INOUT xmlnsc REFERENCE)
LANGUAGE JAVA
EXTERNAL NAME "PAMMsgUtil.parseMessage2";
===============================================

JAVA
public static void parseMessage2(MbElement[] xmlnsc) {

}
===============================================

When I run I got exception with SqlRoutine::clearDownChildEnv. I am pretty much running out of idea.

Is there anything that I might have missed out?

Thanks
Regards
Wynn[/u]
Back to top
View user's profile Send private message
prasad.edlabadkar
PostPosted: Wed Jun 16, 2010 4:43 am    Post subject: Reply with quote

Novice

Joined: 10 Feb 2006
Posts: 21
Location: Pune, India

Hi

Try changing

CREATE PROCEDURE parseMessage(INOUT xmlnsc REFERENCE)
LANGUAGE JAVA
EXTERNAL NAME "PAMMsgUtil.parseMessage2";

To

CREATE PROCEDURE parseMessage(IN xmlnsc REFERENCE)
LANGUAGE JAVA
EXTERNAL NAME "PAMMsgUtil.parseMessage2";

Don't worry you can still modify the tree in the Java code.

Hope it helps.
_________________
Thanks and Regards
Prasad Edlabadkar
Tech Lead - Websphere Business Integration
Back to top
View user's profile Send private message Yahoo Messenger
wynnhtun
PostPosted: Wed Jun 16, 2010 6:10 pm    Post subject: Reply with quote

Newbie

Joined: 19 May 2010
Posts: 3

Yes. This solved the problem. Thanks a lot

prasad.edlabadkar wrote:
Hi

Try changing

CREATE PROCEDURE parseMessage(INOUT xmlnsc REFERENCE)
LANGUAGE JAVA
EXTERNAL NAME "PAMMsgUtil.parseMessage2";

To

CREATE PROCEDURE parseMessage(IN xmlnsc REFERENCE)
LANGUAGE JAVA
EXTERNAL NAME "PAMMsgUtil.parseMessage2";

Don't worry you can still modify the tree in the Java code.

Hope it helps.
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 from 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.