|
|
Re: [CDO 0.8.0RC1] CDOUtil.openSession missing [message #122776 is a reply to message #122772] |
Wed, 21 May 2008 11:15  |
Eclipse User |
|
|
|
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 10:58  |
Eclipse User |
|
|
|
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 11:15  |
Eclipse User |
|
|
|
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.?
>
|
|
|
Powered by
FUDForum. Page generated in 0.03951 seconds