The SessionManager.Session interface represents an authenticated session between the client application and EAServer. The Manager.createSession method accepts a user name and password and returns a Session object, as shown in the example below:
import org.omg.CORBA.*; import SessionManager.*; import java.awt.*; public class myApplet extends Applet { Manager manager; ... deleted code that created Manager instance ... try { Session session = manager.createSession(user, password); } catch (org.omg.CORBA.COMM_FAILURE cf) { // The server is likely down or has run // out of connections. You can retry the // connection if desired. ... report the error ... } catch (org.omg.CORBA.NO_PERMISSION np) { // Tell the user they are not authorized ... } catch (org.omg.CORBA.SystemException se) { // Catch-all clause for any CORBA system // exception that was not explicitly caught // above. Report the error but don’t bother // retrying. ... }