dcsimg
passing Servlet context parameters to EJB
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Steve_Pruitt
Posted On:   Monday, January 5, 2004 08:14 AM

If I set a context parameter for a Servlet, but I cannot alter the Servlet's source code. How can I pass the value to a SessionBean? I would like to have the value in the SessionBean's context.

Thanks.

-S

Re: passing Servlet context parameters to EJB

Posted By:   Anin_Mathen  
Posted On:   Monday, January 5, 2004 11:03 AM

I dont know if there is a direct way of doing this. But I would imagine that you could use the JNDI to pass information if there is nothing else available. Register the context object with the JNDI and look it up from the EJB. Again performance and style questions might come up. But again I am only offering a way.


Anin
About | Sitemap | Contact