jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anton Gavazuk <antongava...@gmail.com>
Subject Re: Jackrabbit Session inside Stateless Session EJB
Date Mon, 11 Feb 2013 12:22:18 GMT
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 <jacolists@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 <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
> >
>

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