users@grizzly.java.net

grizzly 2.1.8 support for cxf : How to create HTTP Context object

From: Chanchal Tyagi <chanchal.tyagi_at_gmail.com>
Date: Mon, 23 Jan 2012 12:17:43 +0530

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