andyj2ee

java tec sky

统计

留言簿(4)

activemq

aop

design pattern

other blog

spring

workflow

多线程

软件架构师

阅读排行榜

评论排行榜

jboss 远程方法调用RMIAdaptor 数组参数的梆定

public interface TestEngine {
 public void scheduleTest(String[] systemIds,ScheduleData data) throws Exception;
........
}
public interface TestEngineServiceMBean extends TestEngine,com.hygensoft.common.service.Service,org.jboss.system.ServiceMBean {
......
}
String[] systemIds = {"HZ","FZ"};
server.invoke(TestEngineServiceMBean.OBJECT_NAME,"scheduleTest",
                new Object[]{ systemIds, data},
                new String[]{ systemIds.getClass().getName(),ScheduleData.class.getName()});



jndi.properties
# DO NOT EDIT THIS FILE UNLESS YOU KNOW WHAT YOU ARE DOING
#
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://localhost:1099

jndi.properties 文件放于classes 目录.

方向:分布式系统设计

posted on 2005-06-14 13:41 java光环 阅读(1221) 评论(0)  编辑  收藏 所属分类: java 基础


只有注册用户登录后才能发表评论。


网站导航: