jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaco Prinsloo <jacoli...@gmail.com>
Subject Re: Jackrabbit Session inside Stateless Session EJB
Date Fri, 16 Oct 2009 12:18:53 GMT
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


On Thu, Oct 15, 2009 at 2:58 PM, Guo Du <mrduguo@gmail.com> wrote:

> On Thu, Oct 15, 2009 at 1:26 PM, Jaco Prinsloo <jacolists@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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message