Search Mailing List Archives
[protege-discussion] How to disconnect from remote server programatically?
Tania Tudorache
tudorache at stanford.edu
Fri May 23 14:42:10 PDT 2008
To disconnect from the server, you only need to call:
project.dispose()
where project is the client side project that you have obtained from the
RemoteProjectManager.
I have also updated the wiki with this information.
Cheers,
Tania
sorokin at oogis.ru wrote:
> Hello protege-users and team,
>
> >From Protege_Client-Server_Tutorial.html:
>
> ...
> To follow is an example of how to access the remote server programatically:
>
> RemoteProjectManager rpm = RemoteProjectManager.getInstance();
> Project p = rpm.getProject("localhost", "Timothy Redmond", "troglodyte",
> "Newspaper", true);
> KnowledgeBase kb = p.getKnowledgeBase();
> ...
>
> My questions is: How to disconnect from the remote server programatically
> when I have done a little piece of work with it?
> Why? Because I want to connect often and many times to do such little
> pieces of work and I don't know if I overload server with many not closed
> sessions?
> Thanks in advance for the actions.
>
> Sincerely,
> Ru
>
>
> _______________________________________________
> protege-discussion mailing list
> protege-discussion at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-discussion
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>
>
More information about the protege-discussion
mailing list