I am creating a struts web client to use 4 EJBs.
within the web client I created a class "BeanManager" with methods that create the session beans.
now that I want my Struts Actions to use these ejbs via BeanManager class. Well, I am not sure if I should have the Action classes instantiate the BeanManager to gain access to the ejbs. or I should extend struts ActionServlet Class and use ServletContextListner() and ServletContextEvent() to Instantiate BeanManager and have the other Action classes use it.
I think of this senario as creating a Databse Connection pool and have it shared among all Action classes.
I hope I am making sense.
Thank you in advance.