users@jersey.java.net

Accessing ServletContext or ServletConfig from a Provider

From: Erdinc Yilmazel <erdinc_at_yilmazel.com>
Date: Mon, 9 Mar 2009 13:34:17 +0000

I am writing a MessageBodyWriter for a custom format and annotated the
implementation class @Provider. Is there any way to access to the
ServletContext or ServletConfig of a web application? What I want to
do is access some init-param's from the web.xml.

Regards,

Erdinc