|Re: [eclipselink-dev] SessionEventListener question|
Hi Dennis,Our session events are synchronous. They allow you to do things like query and the operation that causes the event will not proceed until you return from the event.
-Tom On 23/04/2013 10:24 PM, Dennis Fuglsang wrote:
I have a use case that I believe can be handled through a custom SessionEventListener but I have a few questions concerning the possible implementation. In the use case, before certain objects in my DB are deleted I need to execute a number of queries against that DB to acquire related object data. If I listen for PostCalculateUnitOfWorkChangeSet events will I be able to query for the related data before the delete transaction commits? I assume that these are asynchronous operations and that EclipseLink would proceed and commit the transaction, possibly while I am still processing the event and before I complete gathering my related data. Is that correct? Any help or suggestions you can provide would be greatly appreciated. Thanks, Dennis Fuglsang _______________________________________________ eclipselink-dev mailing list eclipselink-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/eclipselink-dev
Back to the top