Skip to main content



      Home
Home » Modeling » EMF » [CDO] Closing transactions created in view provider
[CDO] Closing transactions created in view provider [message #1220247] Tue, 10 December 2013 10:43 Go to next message
Eclipse UserFriend
Hi all!

Where I should close a transaction opened in contributed CDOViewProvider?
I've implemented one, using the following doc as a reference:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.emf.cdo.doc%2Fhtml%2Fprogrammers%2Fclient%2FViewProviders.html

But i have found out, that once opened that transaction is never closed.
Where is it supposed to be closed?

Many thanks in advance!
Re: [CDO] Closing transactions created in view provider [message #1220273 is a reply to message #1220247] Tue, 10 December 2013 13:37 Go to previous message
Eclipse UserFriend
Am 10.12.2013 16:43, schrieb Leonid Ripeynih:
> Hi all!
>
> Where I should close a transaction opened in contributed CDOViewProvider?
> I've implemented one, using the following doc as a reference:
> http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.emf.cdo.doc%2Fhtml%2Fprogrammers%2Fclient%2FViewProviders.html
>
>
> But i have found out, that once opened that transaction is never closed.
> Where is it supposed to be closed?
In theory you could attach an adapter to your resource set and listen to resource removal. Whenever that happens you
could iterate the list of remaining resources and determine if the opened transaction is still needed. But you'd also
need to ensure that unneeded resources are properly removed from the resource set at some point.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:[CDO] Displaying commit history on whole resource
Next Topic:EMF Roadmap?
Goto Forum:
  


Current Time: Sun Aug 31 15:10:23 EDT 2025

Powered by FUDForum. Page generated in 0.03082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top