xfire实现CS架构的服务发布
1.新建普通JAVA工程,导入XFIRE用户库和xfire-all-1.2.6.jar.新建服务类接口IHelloService,接口实现类HelloService(实现接口方法public String hello(String name))2.模拟服务发布类:EmbeddedService,其内容如下: public boolean start(){ ObjectServiceFactory sf=new ObjectServiceFactory(); Service service=sf.crea
原创
2011-05-09 17:33:00 ·
799 阅读 ·
0 评论