Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] How to construct connection aware URIs
[CDO] How to construct connection aware URIs [message #952790] Sun, 21 October 2012 15:52 Go to previous message
Tim Schaefer is currently offline Tim Schaefer
Messages: 49
Registered: June 2011
Location: Marburg, Germany
Member
Hi,

I learned from
https://bugs.eclipse.org/bugs/show_bug.cgi?id=326186 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=329786
that CDO supports connection aware URIs.
Looking at the test case of the 2nd bugzilla, it seems to me that such a connection aware URI must be constructed manually, e.g.
URI.createURI(CDONet4jUtil.PROTOCOL_TCP + "://localhost:port/repo1/path");
This means that I must know the hostname, port and which protocol to use.
Is there a way to obtain this information by looking at the session of a particular CDOObject?
In my application I have a CDOObject that exists within a user-created session, i.e. from the CDO Sessions view, and I want the app to obtain/create a connection aware URI for this object.
Is this possible?

Regards,
Tim
 
Read Message
Read Message
Read Message
Previous Topic:How models are stored in CDO?
Next Topic:[CDO] Clone example strange behavior
Goto Forum:
  


Current Time: Sun May 19 12:34:13 EDT 2013

Powered by FUDForum. Page generated in 0.01672 seconds