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 » WMBv7.0.1-> Call Java from ESQL

Post new topic  Reply to topic
 WMBv7.0.1-> Call Java from ESQL « View previous topic :: View next topic » 
Author Message
broker_new
PostPosted: Tue Feb 23, 2010 6:41 pm    Post subject: WMBv7.0.1-> Call Java from ESQL Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Hi Guys,

I am having the following problem to call the Java program.

CREATE PROCEDURE brokerProperties()
RETURNS CHARACTER
LANGUAGE JAVA
EXTERNAL NAME "com.ge.eai.BrokerProperties.readProperties1";


Java pgm:
public class BrokerProperties {
public static String[] readProperties1(){
String userId = null;
String password = null;
try{
Properties props = new Properties();
FileInputStream in = new FileInputStream("D:\\WS\\Java_Project\\BrokerProperties.properties");
props.load(in);
userId = props.getProperty("User");
password = props.getProperty("Password");
in.close();
}catch(IOException ie){
System.out.println("Error Msg is" +ie.getMessage());
}
return new String[] {userId,password};
}
}

Exception is:

Text The Java return type does not match the ESQL return type
Text com.ge.eai.BrokerProperties.readProperties1

Could anyone let me know what should be the Return type in ESQL i have to change? [/u]
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Feb 24, 2010 1:25 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Hello,

Yes, you can't return an array of any type...
_________________
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 » WMBv7.0.1-> Call 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.