Hi Chanchal,
you refer class GrizzlyHttpContextFactory, where it comes from?
Grizzly 2.1.8 has the module for JAX-WS support [1], here you can find a
sample [2].
This module normally uses JDK built-in JAX-WS-ri library... not sure if
(how) it's possible to switch to cxf.
Thanks.
WBR,
Alexey.
[1]
http://search.maven.org/#artifactdetails|org.glassfish.grizzly|grizzly-http-server-jaxws|2.1.8|bundle
[2]
http://java.net/projects/grizzly/sources/git/show/samples/http-jaxws-samples/src/main/java/org/glassfish/grizzly/samples/jaxws?rev=9b3f3d9eb07fa36ecd1732b3135cf3128a5a1977
On 01/23/2012 07:47 AM, Chanchal Tyagi wrote:
> Hi ,
>
> I have used grizzly 1.9.35 and cxf 2.4 for soap based https webservice .
>
> Now i am trying to use grizzly 2.1.8 with cxf 2.4 but could not find
> API to create HTTPContext object.
>
> Earlier code was :
>
> final HttpContext context =
> GrizzlyHttpContextFactory.createHttpContext(server, contextPath,
> path); //server is com.sun.grizzly.http.embed.GrizzlyWebServer;
> endpoint = javax.xml.ws.Endpoint.create(soapEndpointService);
> endpoint.publish(context); // Use grizzly HTTP context for
> publishing
>
> This works fine and i am able to publish webservice on grizzly web server.
>
> Now in 2.1.8
> I have created server as instance of
> org.glassfish.grizzly.http.server.HttpServer
> But not sure how to create HttpContext object
> as GrizzlyHttpContextFactory takes GrizzlyWebServe instance as parameter.
>
>
> Please help!!
>
> Thanks
> -Chanchal