I have a JavaBean which is being used by servlets in a web application, and I want to access this bean in a Message-Driven EJB in order to update a value in the bean (I'll want to add a message text to a Vector of Strings in the JavaBean). In the servlets I can access the bean by getting it as a ServletContext attribute, but I'm not clear as to how I can access this bean within the EJB's onMessage() method, since the EJB doesn't have access to the ServletContext.
Can someone suggest how I gain access to this bean within the EJB's onMessage() method ?
Thanks in advance for any feedback.
-James
Can someone suggest how I gain access to this bean within the EJB's onMessage() method ?
Thanks in advance for any feedback.
-James