|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionFactory
This interface provides methods for creating a Session.
Method Summary | |
---|---|
Session |
createSession()
Creates a session object. |
Session |
createSession(String aUserName,
String aPassword)
Creates a session object with the specified username and password. |
Method Detail |
---|
Session createSession() throws DIException, RemoteException
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.
RemoteException
- if a communication-related exception occurs.Session createSession(String aUserName, String aPassword) throws DIException, RemoteException
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());
aUserName
- the username for authentication.aPassword
- the password for authentication.
DIException
- if an error occurs while creating Session.
RemoteException
- if a communication-related exception occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |