Hi,

Currently my application is designed as a servlet inside Tomcat, which
was working fine but we would like to move away from Tomcat to have
better control on on the application life cycle is managed. I have
tried using the latest Restlet (1.1M4) with the Grizzly and the
migration was easy as swapping in the restlet extension jars. However
I am not so sure on how to create an HTTPS server instead of HTTP
server. Right now I'm using the following code to start up an HTTP
server:

               component = new Component();
               component.getServers().add(Protocol.HTTP, port);

               // initialize the Service
               ServiceContext context = new 
ServiceContext(component.getContext(),
configuration);

               // Attach the application to the context root and start it
               component.getDefaultHost().attach(ServiceContext.CONTEXT_ROOT,
context);
               component.start();

So for starting a HTTPS server, do I just change the protocol to
HTTPS? Where would I specify the keystorePath, keystorePassword etc?
Also, I'm also wondering if the Grizzly extension will be production
ready for 1.1 release of Restlet?

Regards,

Reply via email to