Hi Bruce,

Currently, the Grizzly connector is not ready for production. There are a
couple of outstanding bugs that we need to fix. We'd like to run some
benchmarks as well before final 1.1 release.

However, even if 1.1 release should be ready for production, it would still
be marked as "testing" in our download page:
http://www.restlet.org/downloads/ 

It's only a couple of months after, when we release 1.2 M1, that 1.1 release
will become the "stable" official release instead of 1.0. We try to follow a
release cycle similar to Debian.

Now, if stability matters the most, I would recommend using the Jetty
connector instead, which we have since Restlet 1.0.

Regarding connectors configuration, check this page:
http://www.restlet.org/documentation/1.1/connectors

Best regards,
Jerome


-----Message d'origine-----
De : news [mailto:[EMAIL PROTECTED] De la part de Bruce Lee
Envoye : jeudi 19 juin 2008 16:22
A : [email protected]
Objet : Using Grizzly adapter with Restlet

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