Openfire 内部实现webservice接口插件
主要实现用的框架为 Xfire框架private boolean start() {ObjectServiceFactory serviceFactory = new ObjectServiceFactory();Service service = serviceFactory.create(WebService.class);service.setInvoker(new BeanInvoker(new WebServiceImp()));XFire xfire = XFireFactory.newInstance().getXFire();xfire.getServiceRegistry().register(service);server = new XFireHttpServer();server.setPort(8191);try {server.start();} catch (Exception e) {return false;}return true;}
?