users@jersey.java.net

Re: [Jersey] Set ServletContext info as an init-param for Grizzly/HTTP container

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 17 Nov 2008 12:05:25 +0100

On Nov 17, 2008, at 11:57 AM, Srinivas Naresh Bhimisetty wrote:

> Paul Sandoz wrote:
>>
>> On Nov 17, 2008, at 7:13 AM, Srinivas Naresh Bhimisetty wrote:
>>
>>> Hi,
>>>
>>> I have come across a scenario where I need to set the Servlet
>>> Context information to the GrizzlyContainer / HTTPContainer.
>>> Is there any provision where I could pass this info as an init
>>> param to the GrizzlyWebContainerFactory / ContainerFactory, in
>>> order to set it?
>>>
>>
>> I am not sure if the Grizzly ServletAdapter supports the setting of
>> context parameters. From the JavaDoc [1] it looks unlikely.
> Yes I tried this, but it doesn't work.
> We need this way of passing the ServletContext name, context init
> params, etc. for certain samples in order to get them running
> properly with the GrizzlyContainer and the HTTPContainer of the test
> framework, otherwise we see some test failures and errors, as I saw
> with the "spring-annotations" and the "simple-servlet" samples.
> These tests work fine with the Embedded Glassfish as the info is
> maintained in the deployment descriptors.
>

For now i would not pursue this area. The Grizzly servlet currently
provides a subset of web container functionality. So i think a test
should state which containers it supports, if different from the
default.

Paul.

> Thanks,
> Naresh
>>
>> Paul.
>>
>> [1] https://grizzly.dev.java.net/apidocs/com/sun/grizzly/http/servlet/ServletAdapter.html
>> #getProperty(java.lang.String)
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>