You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by qcfireball <qc...@yahoo.com> on 2007/11/02 18:55:31 UTC

javax.jcr.Session

Is this a concurrent class?  Or will multiple Threads using a Session cause
problems?
-- 
View this message in context: http://www.nabble.com/javax.jcr.Session-tf4739118.html#a13552638
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: javax.jcr.Session

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On 11/5/07, qcfireball <qc...@yahoo.com> wrote:
> How about the RMI version of the implementation?

That's the same, at least if you're using jackrabbit-jcr-rmi as the
RMI implementation. A JCR-RMI Session is simply a remote proxy for a
normal Session, so it's just as thread-safe as the underlying
implementation.

BR,

Jukka Zitting

Re: javax.jcr.Session

Posted by qcfireball <qc...@yahoo.com>.
How about the RMI version of the implementation?


Julian Reschke wrote:
> 
> qcfireball wrote:
>> Is this a concurrent class?  Or will multiple Threads using a Session
>> cause
>> problems?
> 
> The JCR spec says: one thread per session. It may work multithreaded for 
> some implementations, but do not rely on it if you're interested to move 
> to a different implementation later on.
> 
> best regards, Julian
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/javax.jcr.Session-tf4739118.html#a13587444
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: javax.jcr.Session

Posted by Julian Reschke <ju...@gmx.de>.
qcfireball wrote:
> Is this a concurrent class?  Or will multiple Threads using a Session cause
> problems?

The JCR spec says: one thread per session. It may work multithreaded for 
some implementations, but do not rely on it if you're interested to move 
to a different implementation later on.

best regards, Julian