Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Closing transactions created in view provider
[CDO] Closing transactions created in view provider [message #1220247] Tue, 10 December 2013 15:43 Go to next message
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 150
Registered: February 2012
Senior Member
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 18:37 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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: Thu Apr 25 11:38:33 GMT 2024

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

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

Back to the top