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 ofsession
and returns it.createConnection
(String name, String password, String connectInfo) Deprecated.No replacementCreates a default (property file driven) connection.String[]
Deprecated.No replacementstatic void
invokeInThread
(Runnable toRun) Deprecated.No replacementstatic void
invokeInThread
(Runnable toRun, int priority) Deprecated.No replacementvoid
Logs a request from a client.static void
The BAS server entry when launched as a separate process.void
shutDown()
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:
createDefaultConnection
in interfacePBAServer
- Returns:
- A
PInfranetConnection
object. - 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:
createConnection
in 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
PInfranetConnection
object - Throws:
RemoteException
- thrown for errors
-
createConnection
Creates an app controller which really represents a user session, not a connection to Portal.- Specified by:
createConnection
in 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 ofsession
and returns it. A user session does not necessarily have a connection to the Portal server, but for historical reasons it's represented byPInfranetConnection
whose name is misleading.- Specified by:
createConnection
in interfacePBAServer
- Parameters:
session
- the session to be duplicated.- Returns:
- A new user session or null if
session
is not an instance ofPInfranetAppControllerImpl
orPInfranetConnectionImpl
. - Throws:
RemoteException
-
shutDown
Does necessary clean-up for shut-down.- Specified by:
shutDown
in interfacePBAServer
- Throws:
RemoteException
-
getPossibleConnections
Deprecated.No replacementGets a list of available Portal hosts to connect to.- Specified by:
getPossibleConnections
in interfacePBAServer
- Returns:
- A
String
array, 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:
logRemote
in 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
-