jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KÖLL Claus <C.KO...@TIROL.GV.AT>
Subject AW: JBoss JTA transaction timeout
Date Mon, 02 Jul 2007 09:42:00 GMT
> Yes, I may open a new session inside the same transaction (I'm quite new to Seam so I
don't know in detail how it handles everything, but almost sure I open more 
> than one transaction). 

... you can not open more than 1 session inside a container transaction ..

> Both the upload & download methods get a new session when they start doing their
ok thats the normal way ..

public void testme() { <-- is a EJB SesssionBean Method
//ContainerTransaction begnis ...
Session sess = getRepository().login(credentials, workspaceName);
//Container Transaction ends
if you now open a second session inside this transaction you will get a timeout eception ...


-----Original Message-----
From: KÖLL Claus [mailto:C.KOELL@TIROL.GV.AT] 
Sent: Monday, July 02, 2007 11:58 AM
To: users@jackrabbit.apache.org
Subject: AW: JBoss JTA transaction timeout

the only thing you must looking for not to open 2 sessions in 1 transaction !
maybe you are opening a adminsession in the accessmanager ?
even if you do only reading with the second session you will get a timeout exception !

the locking strategy is at the moment designed not to allow 2 sessions in one transaction


View raw message