Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO 0.8.0RC1] CDOUtil.openSession missing
[CDO 0.8.0RC1] CDOUtil.openSession missing [message #122769] Wed, 21 May 2008 14:51 Go to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Just downloaded and installed CDO/NET4J 0.8.0RC1 and found the method
CDOUtil.openSession seems to be missing.
Re: [CDO 0.8.0RC1] CDOUtil.openSession missing [message #122772 is a reply to message #122769] Wed, 21 May 2008 14:58 Go to previous messageGo to next message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Looks like the method is replace with new API.

so

CDOSession session = CDOUtil.openSession(TCPUtil.getConnector(container,
"localhost:2036"), "repo1");

becomes

CDOSessionConfiguration config = CDOUtil.createSessionConfiguration();
config.setConnector(TCPUtil.getConnector(container, "localhost:2036"));
config.setRepositoryName("repo1");
CDOSession session = config.openSession();

Correct.?
Re: [CDO 0.8.0RC1] CDOUtil.openSession missing [message #122776 is a reply to message #122772] Wed, 21 May 2008 15:15 Go to previous message
Eclipse UserFriend
Originally posted by: stepper.sympedia.de

Mark,

Yes, with more and more properties becoming mandatory part of the
session initialization (before activation) I felt it was time to provide
better API. Please note that CDOSessionConfiguration.openSession()
returns the same session instance if you call it more than once!

Cheers
/Eike



geib schrieb:
> Looks like the method is replace with new API.
>
> so
>
> CDOSession session =
> CDOUtil.openSession(TCPUtil.getConnector(container, "localhost:2036"),
> "repo1");
>
> becomes
>
> CDOSessionConfiguration config = CDOUtil.createSessionConfiguration();
> config.setConnector(TCPUtil.getConnector(container, "localhost:2036"));
> config.setRepositoryName("repo1");
> CDOSession session = config.openSession();
>
> Correct.?
>
Re: [CDO 0.8.0RC1] CDOUtil.openSession missing [message #618094 is a reply to message #122769] Wed, 21 May 2008 14:58 Go to previous message
Mark Geib is currently offline Mark GeibFriend
Messages: 432
Registered: July 2009
Senior Member
Looks like the method is replace with new API.

so

CDOSession session = CDOUtil.openSession(TCPUtil.getConnector(container,
"localhost:2036"), "repo1");

becomes

CDOSessionConfiguration config = CDOUtil.createSessionConfiguration();
config.setConnector(TCPUtil.getConnector(container, "localhost:2036"));
config.setRepositoryName("repo1");
CDOSession session = config.openSession();

Correct.?
Re: [CDO 0.8.0RC1] CDOUtil.openSession missing [message #618098 is a reply to message #122772] Wed, 21 May 2008 15:15 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Mark,

Yes, with more and more properties becoming mandatory part of the
session initialization (before activation) I felt it was time to provide
better API. Please note that CDOSessionConfiguration.openSession()
returns the same session instance if you call it more than once!

Cheers
/Eike



geib schrieb:
> Looks like the method is replace with new API.
>
> so
>
> CDOSession session =
> CDOUtil.openSession(TCPUtil.getConnector(container, "localhost:2036"),
> "repo1");
>
> becomes
>
> CDOSessionConfiguration config = CDOUtil.createSessionConfiguration();
> config.setConnector(TCPUtil.getConnector(container, "localhost:2036"));
> config.setRepositoryName("repo1");
> CDOSession session = config.openSession();
>
> Correct.?
>


Previous Topic:[CDO 0.8.0RC1] CDOUtil.openSession missing
Next Topic:[EMF Compare] How to use EMF Compare in Java
Goto Forum:
  


Current Time: Fri Apr 19 10:49:40 GMT 2024

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

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

Back to the top