Skip to main content



      Home
Home » Modeling » EMF » EMF Resources transactional safe?
EMF Resources transactional safe? [message #901484] Mon, 13 August 2012 01:08 Go to next message
Eclipse UserFriend
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 02:06 Go to previous message
Eclipse UserFriend
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: Sat Jul 12 18:44:46 EDT 2025

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

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

Back to the top