public interface PBAServer extends Remote
PBAServer
is the BAS server interface.
The BAS server is a simple application server. Its main function
is to serve as a single point of contact for BAS clients to start
their server-side activities, for example, a single name server lookup.
The createConnection
methods create a
PInfranetAppController
for each user session. The
user session in turn uses these connections to create the controllers for
the various client-side components.
Note: In previous releases, these connections also needed valid
Portal logins, but this is no longer required.Modifier and Type | Method and Description |
---|---|
PInfranetConnection |
createConnection(boolean useConnectionPool)
Creates a user session and returns it.
|
PInfranetConnection |
createConnection(PInfranetConnection session)
Creates a duplicate of
session and returns it. |
PInfranetConnection |
createConnection(String name,
String password,
String connectInfo)
Deprecated.
No replacement
|
PInfranetConnection |
createDefaultConnection()
Gets a new
PInfranetConnection using information stored in the
PortalUser.properties file. |
String[] |
getPossibleConnections()
Deprecated.
No replacement
|
void |
logRemote(String src,
String msg)
Logs a request from a client.
|
void |
shutDown()
Does necessary clean-up for shut-down.
|
PInfranetConnection createDefaultConnection() throws RemoteException
PInfranetConnection
using information stored in the
PortalUser.properties file.
If the required information is not present in Infranet.properties, the connection
to Portal is not made. The connection object returned in
this case can still be used to log remotely, and can be used to
create controllers.RemoteException
- thrown in case of failurelogRemote( String src, String msg )
PInfranetConnection createConnection(String name, String password, String connectInfo) throws RemoteException
PInfranetConnection
. Logging in
is now handled in a component controller.name
- a user name for logging in to the serverpassword
- the password associated with the user nameconnectInfo
- the connection information in URL form, which must at a minimum
the contain host and port (for example, pcp://host:11960/)RemoteException
- thrown for errorsPInfranetConnection createConnection(boolean useConnectionPool) throws RemoteException
PInfranetConnection
whose name
is misleading.useConnectionPool
- if true the created user session will get a
connection from the connection pool; otherwise, it will use a dedicated
connection throughout its life-timeRemoteException
PInfranetConnection createConnection(PInfranetConnection session) throws RemoteException
session
and returns it. A user
session does not necessarily have a connection to the Portal server,
but for historical reasons it's represented by
PInfranetConnection
whose name is misleading.session
- the session to be duplicatedRemoteException
void shutDown() throws RemoteException
RemoteException
String[] getPossibleConnections() throws RemoteException
String
array with each element containing an available
host and port in Portal connection information formatRemoteException
- thrown for errorsvoid logRemote(String src, String msg) throws RemoteException
src
- the source identifier stringmsg
- a message to logRemoteException
- thrown for errorsCopyright © 2003, 2023, Oracle and/or its affiliates.