Any component can setup an endpoint using the endpoint API.
The impl of that API uses the WS deployment aspect shown above - we do not have a deployer
at that time. i.e. the component initiates the deployment at runtime.
| // Create the endpoint
| EndpointBean epImpl = new EndpointBean();
| endpoint = Endpoint.create(SOAPBinding.SOAP11HTTP_BINDING, epImpl);
|
| // Create and start the HTTP server
| SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
| HttpServer httpServer =
spiProvider.getSPI(HttpServerFactory.class).getHttpServer();
| httpServer.start();
|
| // Create the context and publish the endpoint
| HttpContext context = httpServer.createContext("/jaxws-endpoint");
| endpoint.publish(context);
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132098#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...