Hi community, this discussion has been started long time ago but final aswer has not been provided, is anyone find right approach ?
2009/10/16 Jaco Prinsloo <jacoli...@gmail.com> > Stateless beans are exclusively available for one user at a time, but it > might be used by multiple users in sequence. In other words, members of a > SLSB don't have to be thread-safe, but they may not be tight to a specific > user either. So just to confirm, there should be no problem with multiple > users using the same Session instance, as long as they don't do so > concurrently? > > Thanks, > Jaco > > On Thu, Oct 15, 2009 at 2:58 PM, Guo Du <mrdu...@gmail.com> wrote: > > > On Thu, Oct 15, 2009 at 1:26 PM, Jaco Prinsloo <jacoli...@gmail.com> > > wrote: > > > Thanks, so I assume there isn't any problem with reusing a session (as > > > subsequent requests to the EJB could be made by different users)? > > > > I am not familiar with EJB. The bottom line is that jcr session > > shouldn't be used by different user at the same time if they are going > > to perform updates. If Stateless bean is exclusive available for one > > user, it's safe to reuse the session for different methods. But if > > multiple user could access the same bean instance, the session > > shouldn't be reused. > > > > -Guo > > >