|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #618098 is a reply to message #122772] |
Wed, 21 May 2008 15:15 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
|
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.?
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03680 seconds