public SessioncreateSession()
throws DIException,
java.rmi.RemoteException
Creates a session object.
Example:
var sf = java.rmi.Naming.lookup("rmi://127.0.0.1:1099/SessionFactory");
var session = sf.createSession();
task.logmsg("OS: " + session.getServerInfo().getOperatingSystem());
DIException - if an error occurs while creating Session.
java.rmi.RemoteException - if a communication-related exception occurs.
createSession
public SessioncreateSession(java.lang.String aUserName,
java.lang.String aPassword)
throws DIException,
java.rmi.RemoteException
Creates a session object with the specified username and password.
Example:
var nick = "Username";
var pass = "Difficult password";
var sf = java.rmi.Naming.lookup("rmi://127.0.0.1:1099/SessionFactory");
var session = sf.createSession();
task.logmsg("OS: " + session.getServerInfo().getOperatingSystem());