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 » Urgent: Java function to esql

Post new topic  Reply to topic
 Urgent: Java function to esql « View previous topic :: View next topic » 
Author Message
Shafikz
PostPosted: Fri Jul 13, 2012 1:46 am    Post subject: Urgent: Java function to esql Reply with quote

Apprentice

Joined: 12 Apr 2012
Posts: 29

Hi all,

I have two questions so i need your help

1. I need to call java function in esql.
but java function is taking input in an array and returning an arraylist.
how can I do this work?

2. is it possible to put array/arraylist in GlobalEnvironmentTree as a variable.?


thanks in advance....
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jul 13, 2012 4:20 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

1. You cannot pass an array to a Java method from ESQL:
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ak20708_.htm
2. Yes. You can represent an array in a message tree. It is represented as a set of child elements that have the same name.
Back to top
View user's profile Send private message
Shafikz
PostPosted: Fri Jul 13, 2012 4:27 am    Post subject: Reply with quote

Apprentice

Joined: 12 Apr 2012
Posts: 29

thanks for your reply.....

can u please share some materials/links/examples for 2nd question?
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jul 13, 2012 4:42 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

In your JavaCompute node, iterate over the array. For each element in the array, create a named element in the (Local)Environment tree. Use the same name for all of the elements.
I assume that you know how to do that. If not, you will need to get some education ( either by reading the info center, or by browsing the web, or by taking a training course ).
Back to top
View user's profile Send private message
Shafikz
PostPosted: Fri Jul 13, 2012 5:25 am    Post subject: Reply with quote

Apprentice

Joined: 12 Apr 2012
Posts: 29

thanks alot. it works perfectly
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 » Urgent: Java function to 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.