axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dorner, Thomas" <Thomas.Dor...@t-systems.com>
Subject AW: AxisHttpSession update
Date Mon, 25 Oct 2004 10:51:30 GMT
Hi dims,

I am sorry, cant do that - dont know how to do it!?
Do not use ant before ...

No time at the moment to make research :(
Maybe I can look on it later !?

Sorry 
Thomas

-----Urspr√ľngliche Nachricht-----
Von: Davanum Srinivas [mailto:davanum@gmail.com] 
Gesendet: Montag, 25. Oktober 2004 12:16
An: axis-dev@ws.apache.org
Cc: axis-user@ws.apache.org
Betreff: Re: AxisHttpSession update

Thomas,

Can you please open a JIRA enchancement request and upload a "cvs diff
-u" against latest cvs?

thanks,
dims


On Mon, 25 Oct 2004 12:11:40 +0200, Dorner, Thomas
<thomas.dorner@t-systems.com> wrote:
>  
>  
> 
> Hello all, 
> 
>   
> 
> I have extended the AxisHttpSession class form Glen Daniels, cause the
> Method touch is missing some logic. 
> 
> Now it is possible to touch the session, and the new timeout of the
session
> (HttpSession) will move foreward. 
> 
> Therefore I have also changed the constructors of the class. 
> 
>   
> 
> I hope you will take this changes in further axis releases and like it. 
> 
> If you don't like it - you are free to kick it. 
> 
>   
> 
>   
> 
> The following is the code to generate new Session in my SessionHandler: 
> 
>   
> 
>       private synchronized String getNewSession(MessageContext context){ 
> 
>   
> 
>             wsLogger.debug("[Methode: getNewSession()] - Enter method"); 
> 
>             
> 
>             HttpServletRequest request = (HttpServletRequest)
> context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); 
> 
>             HttpSession httpSession = request.getSession(true); 
> 
>   
> 
>             int sessionTimeoutParam = Integer.parseInt((String)
> this.getOption("sessionTimeout")); 
> 
>   
> 
>             if(sessionTimeoutParam != 0){ 
> 
>                   defaultSessionTimeout = sessionTimeoutParam; 
> 
>             } 
> 
>             
> 
>             AxisHttpSession session = new AxisHttpSession(httpSession,
> defaultSessionTimeout); 
> 
>   
> 
>             String id = session.getSessionID(); 
> 
>               
> 
>             wsLogger.debug("[Methode: getNewSession()] - New session was
> generated with ID : " + id); 
> 
>             
> 
>             session.set("listener", new SessionTimeoutNotifier()); 
> 
>             activeSessions.put(id, session); 
> 
>             
> 
>             return id;        
> 
>       } 
> 
>   
> 
>   
> 
> Thanks 
> 
> Thomas 
> 
>   
> 
>   
> 
>   
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Mime
View raw message