users@grizzly.java.net

Realm / Authentication & ServletContextListeners with grizzly servlet sebserver

From: RaphaelJ <raphael.jolivet_at_gmail.com>
Date: Thu, 3 Jun 2010 08:21:01 -0700 (PDT)

Hi there,

I have developed a REST web service using Jersey Servlet Framework.
It currently runs fine under Apache Tomcat.

For several reason, I want to be able to run it as a standalone server.
I've chosen Grizzly for this purpose.

I have been able to setup correctly a basic server, and to see my "root"
welcome page.

However, 2 things are missing to get further:
* In my Jersey servlet, I have set some security constraints on my web
resources, with the use of JAX-RS security annotation @RolesAllowed. This
feature works fine under Tomcat with DIGEST based authentication / realm.
However, I have not found a way to add a HTTP authentication (basic or
digest) to a Grizzly server. Does it need a "filter" for it ? Where can I
find an implementation of a simple authentication filter ?

* I have a ServletContextListener registered in Tomcat to setup some stuff
on startup. I have not been able to register it with Grizzly. I have seen a
reference to a ServletAdapter.addServletContextListener() in the svn javadoc
of 1.9.9-SNAPSHOT (which I use), but it does not appear to actually exist.

Thanks in advance for your help,

Kind regards,

Raphael



-- 
View this message in context: http://old.nabble.com/Realm---Authentication---ServletContextListeners-with-grizzly-servlet-sebserver-tp28768971p28768971.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.