[Texo] EPersistenceTexoResource usage [message #1630478] |
Mon, 23 February 2015 02:56  |
Eclipse User |
|
|
|
Hi Martin,
I've got two independent questions:
1.
This question is a little hard to answer, I know, because I cannot give any details. Therefore I didn't want to open a second topic.
Sometimes (don't know when) some object references and contained objects get lost. For example: The needed objects are loaded via JSON into a resource on the client. Some objects are edited and saved and completely different objects get lost. They just won't appear in the resource anymore. Unfortunately this only happens on a productive system, so I'm not able to debug into this. Neither the client nor the server throws any exception. DId you experience anything like this?
2.
I want to use Texo within a 2-tier-architecture for an evaluation project. So I want to load objects into the EPersistenceTexoResource and use the EMF proxy resolution. I had a look at your EPersistenceTexoResourceTest where you use a server URI to create the resource. I'm not sure why a server URI is used for this. What do I have to specify as a URI to enable proxy resolution without using a server?
Best regards and thank you for your help.
Bastian
|
|
|
Re: [Texo] EPersistenceTexoResource usage [message #1632307 is a reply to message #1630478] |
Tue, 24 February 2015 02:36   |
Eclipse User |
|
|
|
Hi Bastian,
See replies inline.
gr. Martin
On 23-02-15 08:56, Bastian Wagenfeld wrote:
> Hi Martin,
>
> I've got two independent questions:
>
> 1.
> This question is a little hard to answer, I know, because I cannot give any details. Therefore I didn't want to open a
> second topic. Sometimes (don't know when) some object references and contained objects get lost. For example: The needed
> objects are loaded via JSON into a resource on the client. Some objects are edited and saved and completely different
> objects get lost. They just won't appear in the resource anymore. Unfortunately this only happens on a productive
> system, so I'm not able to debug into this. Neither the client nor the server throws any exception. DId you experience
> anything like this?
MT>> indeed difficult case, the only thing I can think of is to add logging/tracking code which continuously checks for
this. The texo resource has the ResourceModificationTrackingAdapter and each object in the resource gets a
ObjectModificationTrackingAdapter. So hope that helps to find it.
> 2.
> I want to use Texo within a 2-tier-architecture for an evaluation project. So I want to load objects into the
> EPersistenceTexoResource and use the EMF proxy resolution. I had a look at your EPersistenceTexoResourceTest where you
> use a server URI to create the resource. I'm not sure why a server URI is used for this. What do I have to specify as a
> URI to enable proxy resolution without using a server?
MT>> yes the EPersistenceTexoResource does not need a real URI (it is for 2-tier architectures as you note). The only
reason that this test has it because it extends a test which normally works through a http uri. So as long as there is
an uri and a resourceset which contains the resource proxy resolving should work.
>
> Best regards and thank you for your help.
> Bastian
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
|
Re: [Texo] EPersistenceTexoResource usage [message #1632540 is a reply to message #1632498] |
Tue, 24 February 2015 05:32  |
Eclipse User |
|
|
|
Hi Bastian,
Proxy resolving needs an uri, a proxied eobject has an uri. The uri of an eobject is the resource-uri with the id of the
object added/concatenated to it. When resolving this uri, EMF will go to the resourceset with the uri and find (or
create) a resource which can load this eobject. Then the uri is passed to the resource to load the eobject in the resource.
The uri can be fictitious.
gr. Martin
On 24-02-15 11:00, Bastian Wagenfeld wrote:
> Hi Martin,
>
> thanks for your reply.
> 1.) Thank you I'll try that.
>
> 2.) So when you say So as long as there is an uri and a resourceset which contains the resource proxy resolving should
> work. What do you mean with there is an uri. So this URI might be fictitious? How does the EMF proxy resolving work, if
> there is not an URI?
>
> Best regards and thank you a lot.
> Bastian
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
|
|
|
Powered by
FUDForum. Page generated in 0.03883 seconds