jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Poulsen <chris.poul...@dezide.com>
Subject Re: Trouble with transactions and event listeners being triggered too early
Date Wed, 10 Jul 2013 14:55:03 GMT
Hi,

I managed to get this working, the weird behavior happened due to some 
sneaky code manipulating the transaction elsewhere.

Sorry for the noise.

-- 
Chris

On 10-07-2013 12:17, Chris Poulsen wrote:
> Hi,
>
> I'm trying to get jackrabbit v2.4.4 and JPA 1.0 to work together in 
> transactional context.
>
> I think I have managed to get things running correctly, but I'm seeing 
> that my event listeners are triggered prior to transaction demarcation.
>
> If I understand the jcr spec./javadoc correctly the event listeners 
> should not be triggered until changes are persisted (which should 
> happen on transaction commit in JTA environment)
>
> But I'm seeing my listeners being notified before the transaction 
> completes, but as far as i can see my jcr session is enrolled in the 
> active transaction.
>
> Is my understanding of how listeners / transactions work together not 
> correct? or can anyone offer some insights to get this working correctly?
>


Mime
View raw message