private Server startServer() { LOGGER.info("XX: {}", this.serviceAddress); final JaxWsServerFactoryBean srvFactory = new JaxWsServerFactoryBean(); srvFactory.setServiceClass(IBookstore.class); srvFactory.setAddress(this.serviceAddress); srvFactory.setServiceBean(new BookstoreImpl()); // On the server-side, we only intercept incoming requests and outgoing // responses. srvFactory.getInInterceptors() .add(new OperationExecutionSOAPRequestInInterceptor(this.serverMonitoringController)); srvFactory.getOutInterceptors() .add(new OperationExecutionSOAPResponseOutInterceptor(this.serverMonitoringController)); return srvFactory.create(); // create() also starts the server }
private Server startServer() { final JaxWsServerFactoryBean srvFactory = new JaxWsServerFactoryBean(); srvFactory.setServiceClass(IBookstore.class); srvFactory.setAddress(TestCXFClientServerInterceptors.SERVICE_ADDRESS); srvFactory.setServiceBean(new BookstoreImpl()); // On the server-side, we only intercept incoming requests and outgoing responses. srvFactory.getInInterceptors().add(new OperationExecutionSOAPRequestInInterceptor(this.serverMonitoringController)); srvFactory.getOutInterceptors().add(new OperationExecutionSOAPResponseOutInterceptor(this.serverMonitoringController)); return srvFactory.create(); }