[CDO] Connection aware URIs [message #637142] |
Thu, 04 November 2010 06:59  |
Eclipse User |
|
|
|
Hy everyone,
I was wondering if there is any mechanism in CDO to persist repository locations ?
I explain myself : if I reference in a local xmi resource a CDOResource, the URI will be persisted : "cdo://repo1/myResource.xmi". There is no problem with that while I'm connected to the CDO Repository (repo1) containing the resource, as CDOURIHandlers will retrieve this Resource.
Let's now say that I have closed my connection and my local Resource. When I re-open this local Resource, CDOURIHandlers aren't able to retrieve the referenced CDOResource any more, as the connection to the repository has been closed.
Is there any mechanism that would allow me to connect automatically to the Repository location corresponding to its UUID ("repo1") ?
If not, do you think that creating my own URIHandler,capable of dealing with URI such as "cdo://repo1/myResource.xmi##tcp://localhost:2036" by connecting to the Repository if no connection is detected, is a good idea ?
Thanks !
|
|
|
Re: [CDO] Connection aware URIs [message #637151 is a reply to message #637142] |
Thu, 04 November 2010 07:50   |
Eclipse User |
|
|
|
Am 04.11.2010 11:59, schrieb alagarde:
> Hy everyone,
> I was wondering if there is any mechanism in CDO to persist repository locations ?
> I explain myself : if I reference in a local xmi resource a CDOResource, the URI will be persisted : "cdo://repo1/myResource.xmi". There is no problem with that while I'm connected to the CDO Repository (repo1) containing the resource, as CDOURIHandlers will retrieve this Resource.
>
> Let's now say that I have closed my connection and my local Resource. When I re-open this local Resource, CDOURIHandlers aren't able to retrieve the referenced CDOResource any more, as the connection to the repository has been closed.
> Is there any mechanism that would allow me to connect automatically to the Repository location corresponding to its UUID ("repo1") ?
> If not, do you think that creating my own URIHandler,capable of dealing with URI such as "cdo://repo1/myResource.xmi##tcp://localhost:2036" by connecting to the Repository if no connection is detected, is a good idea ?
A very good idea (except for the hash signs in your example)! That's why I implemented it just the other week :P
Please have a look at:
291574: Provide connection-aware URI formats
https://bugs.eclipse.org/bugs/show_bug.cgi?id=291574
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
>
> Thanks !
|
|
|
Re: [CDO] Connection aware URIs [message #637152 is a reply to message #637151] |
Thu, 04 November 2010 07:52   |
Eclipse User |
|
|
|
Correction, it is this bugzilla:
326186: Provide a URI format that contains connection information
https://bugs.eclipse.org/bugs/show_bug.cgi?id=326186
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Am 04.11.2010 12:50, schrieb Eike Stepper:
> Am 04.11.2010 11:59, schrieb alagarde:
>> Hy everyone,
>> I was wondering if there is any mechanism in CDO to persist repository locations ?
>> I explain myself : if I reference in a local xmi resource a CDOResource, the URI will be persisted : "cdo://repo1/myResource.xmi". There is no problem with that while I'm connected to the CDO Repository (repo1) containing the resource, as CDOURIHandlers will retrieve this Resource.
>>
>> Let's now say that I have closed my connection and my local Resource. When I re-open this local Resource, CDOURIHandlers aren't able to retrieve the referenced CDOResource any more, as the connection to the repository has been closed.
>> Is there any mechanism that would allow me to connect automatically to the Repository location corresponding to its UUID ("repo1") ?
>> If not, do you think that creating my own URIHandler,capable of dealing with URI such as "cdo://repo1/myResource.xmi##tcp://localhost:2036" by connecting to the Repository if no connection is detected, is a good idea ?
> A very good idea (except for the hash signs in your example)! That's why I implemented it just the other week :P
>
> Please have a look at:
>
> 291574: Provide connection-aware URI formats
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=291574
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>>
>> Thanks !
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04589 seconds