users@grizzly.java.net

Re: How to deploy WebServices on Grizzly

From: Oleksiy Stashok <Oleksiy.Stashok_at_Sun.COM>
Date: Tue, 01 Sep 2009 11:37:31 +0200

Hi,

> How can I deploy webservices onto Embedded Grizzly HTTP container?
> Any examples?. I don't want to use GrizzlyServletDeployer, it
> provides a wrapper over Enbedded Webserver but can't add any
> components programatically to that warpper.
Not sure we have any ready examples, though you can take a look how to
Grizzly servlet module examples [1]. So you can implement entry point
for WebServices access.
Then, you can take a look at JAX-WS RI standard servlet transport
implementation [2]:
(1) WSServlet - servlet, which redirects calls to
(2) WSServletDelegate - implements logic, which binds HTTP transport
with WS endpoints
(3) WSServletContextListener - Servlet context listener, which is
responsible for parsing WS deployment descriptor and generation WS
adapters, which represent WS.

What you'll probably need to do - is implement own Grizzly servlet
adapter, to replace (1). Use part of (3)'s logic or implementation as
it is, to create WS adapters (the most important part and probably
complex part).
Once you have (1) and (3) - it's easy to create (2), which will
implement binding between HTTP and WS.

Hope this will help.

WBR,
Alexey.

[1] svn checkout https://www.dev.java.net/svn/grizzly/trunk/code/modules/http-servlet
[2] http://fisheye5.cenqua.com/browse/jax-ws-sources/jaxws-ri/servlet/src/com/sun/xml/ws/transport/http/servlet



>
> Thanks,
> JP