[jboss-user] [JBoss Web Services] - jbossws-native: Publish HttpContext via Endpoint API

Pedro Correia do-not-reply at jboss.com
Mon May 16 14:17:23 EDT 2011


Pedro Correia [http://community.jboss.org/people/sgt_pimenta] created the discussion

"jbossws-native: Publish HttpContext via Endpoint API"

To view the discussion, visit: http://community.jboss.org/message/605513#605513

--------------------------------------------------------------
Hello all,

I'm using jboss-5.1.0.GA and currently upgraded jbossws-native to version 3.4.1.GA.

Previously (as in jbossws-native 3.1.2.GA) I was able to publish a Web Service programmatically (via Endpoint) to the container's HTTP server.
One could either use the static Endpoint.+publish+ or get hold of the running HTTP server/context, eg:

Endpoint endpoint = Endpoint.create(implementor);
SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
*HttpServer* httpServer = spiProvider.getSPI(*HttpServerFactory*.class).getHttpServer();
 HttpContext context = httpServer.createContext(path); 
endpoint.publish(context);

However, as I understand it after refactoring jbossws-native, the default HTTP server for endpoint publishing is now Netty, as opposed to the container's Apache Tomcat. This refactoring is also evident in the code as *HttpServerFactory* has been removed from the library!

My question is: How can I maintain the previous behavior, i.e. acquire the container's HTTP Server and publish the webservice on it?
Is there an alternative to get the JEE HTTP Server? Or was this really broken on purpose to avoid programmatic deployment on the JEE server?

Thanks in advance.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/605513#605513]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110516/5e3c43af/attachment.html 


More information about the jboss-user mailing list