Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] SessionEventListener and Transactions

Yes, if you use the event's session, it will be the UnitOfWork for the
current transaction.



fcalfo wrote:
> 
> I'm thinking of using the SessionEventListener to trigger logic that
> inserts auditing data into a generic auditing table.
> 
> If I invoke this logic from the postCalculateUnitOfWorkChangeSet event,
> will it operate within the same transaction as the entity that is being
> persisted is operating within?
> 
> 
> 


-----
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/SessionEventListener-and-Transactions-tp24281570p24307764.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top