Package com.portal.bas
Class PBAServerImpl
java.lang.Object
com.portal.bas.PBAServerImpl
PBAServerImpl is the implementation of the Business Application Server (BAS).- Author:
- Larry Lynch-Freshner
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection(boolean useConnectionPool) Creates an app controller which really represents a user session, not a connection to Portal.createConnection(PInfranetConnection session) Creates a duplicate ofsessionand returns it.createConnection(String name, String password, String connectInfo) Deprecated.No replacementCreates a default (property file driven) connection.String[]Deprecated.No replacementstatic voidinvokeInThread(Runnable toRun) Deprecated.No replacementstatic voidinvokeInThread(Runnable toRun, int priority) Deprecated.No replacementvoidLogs a request from a client.static voidThe BAS server entry when launched as a separate process.voidshutDown()Does necessary clean-up for shut-down.
-
Method Details
-
invokeInThread
Deprecated.No replacementRuns a task in a thread-pool thread. Used to manage thread usage.Threading should be done on the client side, not on the server (for EJB compliance), so this method is deprecated.
- Parameters:
toRun- the task to run
-
invokeInThread
Deprecated.No replacementRuns a task in a thread-pool thread. Used to manage thread usage.Threading should be done on the client side, not on the server (for EJB compliance), so this method is deprecated.
- Parameters:
toRun- the task to runpriority- the thread priority to use
-
createDefaultConnection
Creates a default (property file driven) connection.- Specified by:
createDefaultConnectionin interfacePBAServer- Returns:
- A
PInfranetConnectionobject. - Throws:
RemoteException- thrown for errors- See Also:
-
createConnection
public PInfranetConnection createConnection(String name, String password, String connectInfo) throws RemoteException Deprecated.No replacementCreates an Portal connection, given specified login information.- Specified by:
createConnectionin interfacePBAServer- Parameters:
name- the user's login namepassword- the user's password, in clear textconnectInfo- a Connection info string in the form: "pcp://<host>:<port>/service" where service is optional. This string may be null.- Returns:
- A
PInfranetConnectionobject - Throws:
RemoteException- thrown for errors
-
createConnection
Creates an app controller which really represents a user session, not a connection to Portal.- Specified by:
createConnectionin interfacePBAServer- Parameters:
useConnectionPool- iftrue, the user session will use the connection pool for communication with Portal- Returns:
- A new user session.
- Throws:
RemoteException
-
createConnection
Creates a duplicate ofsessionand returns it. A user session does not necessarily have a connection to the Portal server, but for historical reasons it's represented byPInfranetConnectionwhose name is misleading.- Specified by:
createConnectionin interfacePBAServer- Parameters:
session- the session to be duplicated.- Returns:
- A new user session or null if
sessionis not an instance ofPInfranetAppControllerImplorPInfranetConnectionImpl. - Throws:
RemoteException
-
shutDown
Does necessary clean-up for shut-down.- Specified by:
shutDownin interfacePBAServer- Throws:
RemoteException
-
getPossibleConnections
Deprecated.No replacementGets a list of available Portal hosts to connect to.- Specified by:
getPossibleConnectionsin interfacePBAServer- Returns:
- A
Stringarray, where each element contains an available host and port in connection information format. - Throws:
RemoteException- thrown for errors
-
logRemote
Logs a request from a client.- Specified by:
logRemotein interfacePBAServer- Parameters:
src- the source identifier stringmsg- a message to log- Throws:
RemoteException- thrown for errors
-
main
The BAS server entry when launched as a separate process.- Parameters:
args- command line arguments; not used
-