velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl <>
Subject Re: Initializing multiple VelocityServlets
Date Thu, 24 Jan 2008 07:44:17 GMT
Kaur, Jasdeep Guglani wrote:
> even implementing the VelocityViewServlet has not solved my problem.
> My class VMServlet which handles all vm requests is being extended from
> VelocityViewServlet. still only one instance of the VM Servlet is created in
> the memory to handle the requests even if they come from different session
> ids...

Servlets are singletons by design. It's their life cycle. You should 
store request-dependent data in the request and session-dependent data 
in the session (see HttpSession.setAttribute()). Velocity is not 
involved here.

Bye, Thomas.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message