Dashboard > Penrose 1.0 > ... > Embedding Penrose > Penrose Session
Penrose Session
Added by Endi S. Dewata, last edited by Endi S. Dewata on Feb 28, 2006
Labels: 
(None)


Creating New Session

To interact with Penrose service first you will need to create a new session:

PenroseSession session = penrose.newSession();

You can use the session to perform LDAP Operations.

Make sure when you create the session Penrose has already been started. Otherwise, you will get a null value. If you later stop Penrose, all sessions will also be closed.

Closing Connection

When you are done, you need to close the session:

session.close();

Once closed, you cannot use the session anymore to perform LDAP operations.

Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators