devphylosoff <devphyl@gmail.com> said:
>I have one servlet with init() method which initialize object of my
>own class.
>
>that's ok if I use this object from only one servlet.
>but how change it - add Listener and have access to object from all
>servlets.
Your init() places the object to application context, so it will be
available through application context to all other servlets needing it;
just take care that the servlet initializing this class is something
that it loaded on webapp startup (web.xml init-on-startup, if I recall
correctly).

Signature
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)