Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF Resources transactional safe?
EMF Resources transactional safe? [message #901484] Mon, 13 August 2012 05:08 Go to next message
Hauke Fuhrmann is currently offline Hauke FuhrmannFriend
Messages: 333
Registered: July 2009
Senior Member
Hi there,

is saving EMF Models in Resources safe from an transactional viewpoint,
e.g. in high-availability environments?

I.e. will a file (either XML or binary) get corrupted and not readable
anymore if saving a model is interrupted right in between the save process?

Cheers,
Hauke
Re: EMF Resources transactional safe? [message #901488 is a reply to message #901484] Mon, 13 August 2012 06:06 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26287
Registered: July 2009
Senior Member
Hauke,

Comments below.


On 13/08/2012 7:08 AM, Hauke Fuhrmann wrote:
> Hi there,
>
> is saving EMF Models in Resources safe from an transactional
> viewpoint, e.g. in high-availability environments?
A resource is saved by opening a stream for the URI, writing the
contents, and then closing the stream. I expect that while a stream is
open, nothing else can open a stream for that same URI and do an update.
>
> I.e. will a file (either XML or binary) get corrupted and not readable
> anymore if saving a model is interrupted right in between the save
> process?
It's possible for a VM to crash, so imagine it's always possible for a
stream to be incomplete at that point.
>
> Cheers,
> Hauke
Previous Topic:[Teneo] @PrePersist/PreUpdate - Hibernate Interceptors - extension manager
Next Topic:What is the status of XSD roundtrip ?
Goto Forum:
  


Current Time: Mon Dec 22 05:42:00 GMT 2014

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

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