[jboss-dev-forums] [Deployers on JBoss (Deployers/JBoss)] - Re: HOWTO deploy webapp dynamically
thomas.diesler@jboss.com
do-not-reply at jboss.com
Tue Feb 26 05:20:56 EST 2008
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#4132098
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132098
More information about the jboss-dev-forums
mailing list