You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Anton Gavazuk <an...@gmail.com> on 2013/02/11 13:22:18 UTC

Re: Jackrabbit Session inside Stateless Session EJB

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 <ja...@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 <mr...@gmail.com> wrote:
>
> > On Thu, Oct 15, 2009 at 1:26 PM, Jaco Prinsloo <ja...@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
> >
>