Accessing EJBs in JSP pages
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amit_Chawla
Posted On:   Sunday, March 25, 2001 08:22 PM

Our Web Application maintains the conversational state using a stateful session bean. This bean needs to be accessed by multiple JSP pages in a frame. Now, as per the EJB Specification, these pages can't execute methods on the SFSB concurrently. Therefore, I want to synchronize the access to the SFSB (the Remote object is being maintained in the HttpSession). What is the best way to do this?

Re: Accessing EJBs in JSP pages

Posted By:   Michael_Wax  
Posted On:   Friday, March 30, 2001 02:04 PM

You could store the remote object in an object with synchronized access in the HttpSession or in a singleton object on your web server.



However, are you really sure that you want to go this route? Taking the frames out would solve your problem without the need for an expensive synchronization mechanism. (In the view of many web developers and usability engineers, taking the frames out would also enhance the appearance and usability of your site.)

About | Sitemap | Contact