Why does scriptSessionTimeout parameter not work in DWR 2.0.5 ?

View: New views
5 Messages — Rating Filter:   Alert me  

Why does scriptSessionTimeout parameter not work in DWR 2.0.5 ?

by Jian-zhi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I try to use DWR 2.0.5 with reverse feature.
But after I set the scriptSessionTimeout parameter it does not work.
When the time expired I still see the thread in server.
My web.xml settings is below:

<servlet>
  <servlet-name>dwr-invoker</servlet-name>
  <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
  <init-param>
    <param-name>scriptSessionTimeout</param-name>
    <param-value>30000</param-value>
  </init-param>
  <init-param>
    <param-name>activeReverseAjaxEnabled</param-name>
    <param-value>true</param-value>
  </init-param>
  <init-param>
    <param-name>initApplicationScopeCreatorsAtStartup</param-name>
    <param-value>true</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
</servlet>

Any one any comments about it?

Re: Why does scriptSessionTimeout parameter not work in DWR 2.0.5 ?

by Lance Java :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> When the time expired I still see the thread in server.
I'm not sure I quite understand you... the timeout tells a cleaning thread how long it should keep script session objects since they were last touched before invalidating them and discarding them. The thread will always exist.

2009/6/16 Jian-zhi <Jian-zhi.Wang@...>

I try to use DWR 2.0.5 with reverse feature.
But after I set the scriptSessionTimeout parameter it does not work.
When the time expired I still see the thread in server.
My web.xml settings is below:

<servlet>
 <servlet-name>dwr-invoker</servlet-name>
 <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
 <init-param>
   <param-name>scriptSessionTimeout</param-name>
   <param-value>30000</param-value>
 </init-param>
 <init-param>
   <param-name>activeReverseAjaxEnabled</param-name>
   <param-value>true</param-value>
 </init-param>
 <init-param>
   <param-name>initApplicationScopeCreatorsAtStartup</param-name>
   <param-value>true</param-value>
 </init-param>
 <load-on-startup>1</load-on-startup>
</servlet>

Any one any comments about it?
--
View this message in context: http://www.nabble.com/Why-does-scriptSessionTimeout-parameter-not-work-in-DWR-2.0.5---tp24051051p24051051.html
Sent from the DWR - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



Re: Why does scriptSessionTimeout parameter not work in DWR 2.0.5 ?

by Jian-zhi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you for you comments.
But how can I get the timeout script sessions and delete them from server side?

Lance Java wrote:
> When the time expired I still see the thread in server.
I'm not sure I quite understand you... the timeout tells a cleaning thread
how long it should keep script session objects since they were last touched
before invalidating them and discarding them. The thread will always exist.

2009/6/16 Jian-zhi <Jian-zhi.Wang@sybase.com>

>
> I try to use DWR 2.0.5 with reverse feature.
> But after I set the scriptSessionTimeout parameter it does not work.
> When the time expired I still see the thread in server.
> My web.xml settings is below:
>
> <servlet>
>  <servlet-name>dwr-invoker</servlet-name>
>  <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
>  <init-param>
>    <param-name>scriptSessionTimeout</param-name>
>    <param-value>30000</param-value>
>  </init-param>
>  <init-param>
>    <param-name>activeReverseAjaxEnabled</param-name>
>    <param-value>true</param-value>
>  </init-param>
>  <init-param>
>    <param-name>initApplicationScopeCreatorsAtStartup</param-name>
>    <param-value>true</param-value>
>  </init-param>
>  <load-on-startup>1</load-on-startup>
> </servlet>
>
> Any one any comments about it?
> --
> View this message in context:
> http://www.nabble.com/Why-does-scriptSessionTimeout-parameter-not-work-in-DWR-2.0.5---tp24051051p24051051.html
> Sent from the DWR - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
> For additional commands, e-mail: users-help@dwr.dev.java.net
>
>

Re: Why does scriptSessionTimeout parameter not work in DWR 2.0.5 ?

by davidmarginian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Now I am not quite sure I understand you ... Lance just answered this
question.

"the timeout tells a cleaning thread how long it should keep script session objects since they were last
touched before invalidating them and discarding them"

DWR should be doing this for you, that is the point of the scriptSessionTimeout.  


Jian-zhi wrote:

> Thank you for you comments.
> But how can I get the timeout script sessions and delete them from server
> side?
>
>
> Lance Java wrote:
>  
>>> When the time expired I still see the thread in server.
>>>      
>> I'm not sure I quite understand you... the timeout tells a cleaning thread
>> how long it should keep script session objects since they were last
>> touched
>> before invalidating them and discarding them. The thread will always
>> exist.
>>
>> 2009/6/16 Jian-zhi <Jian-zhi.Wang@...>
>>
>>    
>>> I try to use DWR 2.0.5 with reverse feature.
>>> But after I set the scriptSessionTimeout parameter it does not work.
>>> When the time expired I still see the thread in server.
>>> My web.xml settings is below:
>>>
>>> <servlet>
>>>  <servlet-name>dwr-invoker</servlet-name>
>>>  <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
>>>  <init-param>
>>>    <param-name>scriptSessionTimeout</param-name>
>>>    <param-value>30000</param-value>
>>>  </init-param>
>>>  <init-param>
>>>    <param-name>activeReverseAjaxEnabled</param-name>
>>>    <param-value>true</param-value>
>>>  </init-param>
>>>  <init-param>
>>>    <param-name>initApplicationScopeCreatorsAtStartup</param-name>
>>>    <param-value>true</param-value>
>>>  </init-param>
>>>  <load-on-startup>1</load-on-startup>
>>> </servlet>
>>>
>>> Any one any comments about it?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Why-does-scriptSessionTimeout-parameter-not-work-in-DWR-2.0.5---tp24051051p24051051.html
>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>>      
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Why does scriptSessionTimeout parameter not work in DWR 2.0.5 ?

by Jian-zhi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK, I understand.
I used !session.isInvalidated() to judge if the session is valid.
Thank you so much!


David Marginian-3 wrote:
Now I am not quite sure I understand you ... Lance just answered this
question.

"the timeout tells a cleaning thread how long it should keep script session objects since they were last
touched before invalidating them and discarding them"

DWR should be doing this for you, that is the point of the scriptSessionTimeout.  


Jian-zhi wrote:
> Thank you for you comments.
> But how can I get the timeout script sessions and delete them from server
> side?
>
>
> Lance Java wrote:
>  
>>> When the time expired I still see the thread in server.
>>>      
>> I'm not sure I quite understand you... the timeout tells a cleaning thread
>> how long it should keep script session objects since they were last
>> touched
>> before invalidating them and discarding them. The thread will always
>> exist.
>>
>> 2009/6/16 Jian-zhi <Jian-zhi.Wang@sybase.com>
>>
>>    
>>> I try to use DWR 2.0.5 with reverse feature.
>>> But after I set the scriptSessionTimeout parameter it does not work.
>>> When the time expired I still see the thread in server.
>>> My web.xml settings is below:
>>>
>>> <servlet>
>>>  <servlet-name>dwr-invoker</servlet-name>
>>>  <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
>>>  <init-param>
>>>    <param-name>scriptSessionTimeout</param-name>
>>>    <param-value>30000</param-value>
>>>  </init-param>
>>>  <init-param>
>>>    <param-name>activeReverseAjaxEnabled</param-name>
>>>    <param-value>true</param-value>
>>>  </init-param>
>>>  <init-param>
>>>    <param-name>initApplicationScopeCreatorsAtStartup</param-name>
>>>    <param-value>true</param-value>
>>>  </init-param>
>>>  <load-on-startup>1</load-on-startup>
>>> </servlet>
>>>
>>> Any one any comments about it?
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Why-does-scriptSessionTimeout-parameter-not-work-in-DWR-2.0.5---tp24051051p24051051.html
>>> Sent from the DWR - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
>>> For additional commands, e-mail: users-help@dwr.dev.java.net
>>>
>>>
>>>      
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@dwr.dev.java.net
For additional commands, e-mail: users-help@dwr.dev.java.net