• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere 4.x, ApplicationListener

 
Sean Sullivan
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know the answer?
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the mechanism found in this javadoc page to add application listeners in your servlets.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic