tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: custom class as resource
Date Mon, 31 Jan 2011 10:36:28 GMT
2011/1/31 alexis <alzrck@gmail.com>:
> actually im already using a class extending servletcontextlistener, this class is the
responsible to start all other threads on processing. Some threads stores results on a DB,
some threads should store results in an object to be accesed by a servlet and presented via
web.
>
> If i use the a) approach and i use it as Listener, how can i access this class from other
threads/classes on my webapp?

ServletContext#setAttribute(String,Object)
ServletContext#getAttribute(String)

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


Mime
View raw message