File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere 4.x, ApplicationListener" Watch "Websphere 4.x, ApplicationListener" New topic
Author

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 com.ibm.websphere.servlet.event.ApplicationListener
interface?
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
author
Ranch Hand

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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere 4.x, ApplicationListener