Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Serializing EMF over RMI and WebServices
Serializing EMF over RMI and WebServices [message #490776] Sat, 10 October 2009 15:07 Go to next message
Derek Palma is currently offline Derek PalmaFriend
Messages: 141
Registered: July 2009
Senior Member
Hi,

How does one go about transporting EMF Objects over RMI and WebServices? I
am asking this question because I don't see that EObject is serializable
(maybe I need to look elsewhere?) so the default serialization method of
Java does not seem to be supported. I would like to transport my EMF objects
to another JVM and I am hoping to learn the best/standard practice for
achieving this.

Thanks in advance,
Derek
Re: Serializing EMF over RMI and WebServices [message #490777 is a reply to message #490776] Sat, 10 October 2009 15:14 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The easiest thing is to use CDO and beside that it gives features like
lazy loading.

Tom

Derek Palma schrieb:
> Hi,
>
> How does one go about transporting EMF Objects over RMI and WebServices?
> I am asking this question because I don't see that EObject is
> serializable (maybe I need to look elsewhere?) so the default
> serialization method of Java does not seem to be supported. I would like
> to transport my EMF objects to another JVM and I am hoping to learn the
> best/standard practice for achieving this.
>
> Thanks in advance,
> Derek
Re: Serializing EMF over RMI and WebServices [message #490778 is a reply to message #490776] Sat, 10 October 2009 15:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Derek,

There never seems enough time to complete
https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014. Another
alternative is to put the EObject in a container that uses the fact that
eObject.eResource().save can be used to write bytes that can be read
back in to resolve the original resource and all its containing objects.


Derek Palma wrote:
> Hi,
>
> How does one go about transporting EMF Objects over RMI and
> WebServices? I am asking this question because I don't see that
> EObject is serializable (maybe I need to look elsewhere?) so the
> default serialization method of Java does not seem to be supported. I
> would like to transport my EMF objects to another JVM and I am hoping
> to learn the best/standard practice for achieving this.
>
> Thanks in advance,
> Derek


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Serializing EMF over RMI and WebServices [message #490780 is a reply to message #490778] Sat, 10 October 2009 16:00 Go to previous messageGo to next message
Derek Palma is currently offline Derek PalmaFriend
Messages: 141
Registered: July 2009
Senior Member
Thanks Ed!

I looked at the bug. It seems the problem is well understood and some work
has been done. I am just wondering if how much more work is involved and if
you need to be an EMF expert or just undertand Java serialization. Your last
comment in the bug made me feel it was almost done.

Derek

"Ed Merks" <Ed.Merks@gmail.com> wrote in message
news:haq8qh$8kp$1@build.eclipse.org...
> Derek,
>
> There never seems enough time to complete
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014. Another alternative
> is to put the EObject in a container that uses the fact that
> eObject.eResource().save can be used to write bytes that can be read back
> in to resolve the original resource and all its containing objects.
>
>
> Derek Palma wrote:
>> Hi,
>>
>> How does one go about transporting EMF Objects over RMI and WebServices?
>> I am asking this question because I don't see that EObject is
>> serializable (maybe I need to look elsewhere?) so the default
>> serialization method of Java does not seem to be supported. I would like
>> to transport my EMF objects to another JVM and I am hoping to learn the
>> best/standard practice for achieving this.
>>
>> Thanks in advance,
>> Derek
Re: Serializing EMF over RMI and WebServices [message #490785 is a reply to message #490780] Sat, 10 October 2009 16:16 Go to previous messageGo to next message
Derek Palma is currently offline Derek PalmaFriend
Messages: 141
Registered: July 2009
Senior Member
Hi Ed,

Actually I missed the the last comment of the bug says it will be in the
next release. Helios right? Is the code already available for testing in M2?

Derek

"Derek Palma" <derek.palma@gmail.com> wrote in message
news:haqb4p$28v$1@build.eclipse.org...
> Thanks Ed!
>
> I looked at the bug. It seems the problem is well understood and some work
> has been done. I am just wondering if how much more work is involved and
> if you need to be an EMF expert or just undertand Java serialization. Your
> last comment in the bug made me feel it was almost done.
>
> Derek
>
> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
> news:haq8qh$8kp$1@build.eclipse.org...
>> Derek,
>>
>> There never seems enough time to complete
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014. Another
>> alternative is to put the EObject in a container that uses the fact that
>> eObject.eResource().save can be used to write bytes that can be read back
>> in to resolve the original resource and all its containing objects.
>>
>>
>> Derek Palma wrote:
>>> Hi,
>>>
>>> How does one go about transporting EMF Objects over RMI and WebServices?
>>> I am asking this question because I don't see that EObject is
>>> serializable (maybe I need to look elsewhere?) so the default
>>> serialization method of Java does not seem to be supported. I would like
>>> to transport my EMF objects to another JVM and I am hoping to learn the
>>> best/standard practice for achieving this.
>>>
>>> Thanks in advance,
>>> Derek
>
Re: Serializing EMF over RMI and WebServices [message #490807 is a reply to message #490785] Sun, 11 October 2009 05:12 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Derek,

I hope I can get it done for Helios, but not, it's not yet done.


Derek Palma wrote:
> Hi Ed,
>
> Actually I missed the the last comment of the bug says it will be in
> the next release. Helios right? Is the code already available for
> testing in M2?
>
> Derek
>
> "Derek Palma" <derek.palma@gmail.com> wrote in message
> news:haqb4p$28v$1@build.eclipse.org...
>> Thanks Ed!
>>
>> I looked at the bug. It seems the problem is well understood and some
>> work has been done. I am just wondering if how much more work is
>> involved and if you need to be an EMF expert or just undertand Java
>> serialization. Your last comment in the bug made me feel it was
>> almost done.
>>
>> Derek
>>
>> "Ed Merks" <Ed.Merks@gmail.com> wrote in message
>> news:haq8qh$8kp$1@build.eclipse.org...
>>> Derek,
>>>
>>> There never seems enough time to complete
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=245014. Another
>>> alternative is to put the EObject in a container that uses the fact
>>> that eObject.eResource().save can be used to write bytes that can be
>>> read back in to resolve the original resource and all its containing
>>> objects.
>>>
>>>
>>> Derek Palma wrote:
>>>> Hi,
>>>>
>>>> How does one go about transporting EMF Objects over RMI and
>>>> WebServices? I am asking this question because I don't see that
>>>> EObject is serializable (maybe I need to look elsewhere?) so the
>>>> default serialization method of Java does not seem to be supported.
>>>> I would like to transport my EMF objects to another JVM and I am
>>>> hoping to learn the best/standard practice for achieving this.
>>>>
>>>> Thanks in advance,
>>>> Derek
>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Removing objects from bi-directional references without notification
Next Topic:skiping namespace validation
Goto Forum:
  


Current Time: Fri Apr 19 12:29:02 GMT 2024

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

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

Back to the top