dev@grizzly.java.net

Re: Question/Asnwer : why GrizzyAdapterChain rootFolder is not the same as ServletAdapter?

From: Survivant 00 <survivant00_at_gmail.com>
Date: Mon, 6 Apr 2009 10:21:05 -0400

I already do that

sa.setRootFolder(rootFolder);

for each ServletAdapter.

but it's not working for the maki sample




2009/4/6 Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>

> Salut,
>
> Survivant 00 wrote:
>
>> One question. I'm doing this using GrizzlyWebServer
>>
>> I have a war that have 2 servlets.
>> I set the rootFolder for theses 2 servletAdapter
>>
>> and
>>
>> sa.setHandleStaticResources(true);
>>
>> but when I trace the code..the GrizzlyChainAdapter is "."
>>
>> should I set the rootfolder for this one too ?
>>
>> I try that SelectorThread.setWebAppRootPath(rootFolder); but didn't work
>> too. (and by the way.. when should I use this line ? )
>>
>
> do GrizzltAdapter.setRootFolder(...)
>
>
>
>>
>> I trace into the code I found that GWS.updateGrizzlyAdapters() update
>> the rootfolder for GrizzlyChainAdapter..
>>
>> but the variable : webResourcesPath is set from the GWS constructor....
>>
>>
>> if we add a method : setWebResourcesPath(String rootFolder)
>>
>
>
> But it needs to be per Application (per GrizzlyAdapter) IMO. So that's why
> I think setRootFolder(0 will works better. What do you think?
>
> A+
>
> --Jeanfrancois
>
>
>
>
>>
>> will it fix my problem ?
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: dev-help_at_grizzly.dev.java.net
>
>