请问各位大牛,Android的客户端可以调用EJB的方法吗? 下面的程序中InitialContext是不是只有JAVASE可以调用? Android中调用不了?其中WeatherQuery 是服务器端导出的接口,client端的stubpublic static void main(String[] args)throws Exception {
   //This class is the starting context for performing naming operations.
   Properties props = new Properties();
   props.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
   props.setProperty("java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces");
    props.setProperty("java.naming.provider.url","59.*.*.*");
    InitialContext context = new InitialContext(props);
    //远端调用查询方法,bean的名称与jboss服务器启动的EJB名称相同
    WeatherQuery wq = (WeatherQuery)context.lookup("WeatherQueryBean/remote");
    //调用接口中的方法
    String[] weather = wq.getWeather("wuhan");
 
}先谢谢了