This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Websphere and the fly likes Websphere 4.x, ApplicationListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere 4.x, ApplicationListener" Watch "Websphere 4.x, ApplicationListener" New topic

Websphere 4.x, ApplicationListener

Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
My enviroment: IBM Websphere Application Server 4.0.6
How can I use the
It is easy for me to write a class that implements the interface.
However, how do I deploy the class? Do I deploy the class inside a WAR?
Or do I deploy the class outside of a WAR?
Also, how do I register my ApplicationListener class with Websphere?
Do I need to declare it in the server-cfg.xml ?
Or do I declare the listener in a deployment descriptor?
Please note: Websphere 4.x is a Servlet 2.2 environment.
Servlet 2.2 does NOT provide the standard "listener" mechanism found
in Servlet 2.3
Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
Does anybody know the answer?
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Use the mechanism found in this javadoc page to add application listeners in your servlets.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: Websphere 4.x, ApplicationListener
It's not a secret anymore!