Modifier and Type | Method and Description |
---|---|
PInfranetConnection |
createConnection(boolean useConnectionPool)
Creates an app controller which really represents a user session, not a
connection to Portal.
|
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()
Creates a default (property file driven) connection.
|
String[] |
getPossibleConnections()
Deprecated.
No replacement
|
static void |
invokeInThread(Runnable toRun)
Deprecated.
No replacement
|
static void |
invokeInThread(Runnable toRun,
int priority)
Deprecated.
No replacement
|
void |
logRemote(String src,
String msg)
Logs a request from a client.
|
static void |
main(String[] args)
The BAS server entry when launched as a separate process.
|
void |
shutDown()
Does necessary clean-up for shut-down.
|
public static void invokeInThread(Runnable toRun)
Threading should be done on the client side, not on the server (for EJB compliance), so this method is deprecated.
toRun
- the task to runpublic static void invokeInThread(Runnable toRun, int priority)
Threading should be done on the client side, not on the server (for EJB compliance), so this method is deprecated.
toRun
- the task to runpriority
- the thread priority to usepublic PInfranetConnection createDefaultConnection() throws RemoteException
createDefaultConnection
in interface PBAServer
PInfranetConnection
object.RemoteException
- thrown for errorsPBAServer.logRemote( String src, String msg )
public PInfranetConnection createConnection(String name, String password, String connectInfo) throws RemoteException
createConnection
in interface PBAServer
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.PInfranetConnection
objectRemoteException
- thrown for errorspublic PInfranetConnection createConnection(boolean useConnectionPool) throws RemoteException
createConnection
in interface PBAServer
useConnectionPool
- if true
, the user session will use
the connection pool for communication with PortalRemoteException
public 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.createConnection
in interface PBAServer
session
- the session to be duplicated.session
is not an
instance of PInfranetAppControllerImpl
or
PInfranetConnectionImpl
.RemoteException
public void shutDown() throws RemoteException
shutDown
in interface PBAServer
RemoteException
public String[] getPossibleConnections() throws RemoteException
getPossibleConnections
in interface PBAServer
String
array, where each element contains an available
host and port in connection information format.RemoteException
- thrown for errorspublic void logRemote(String src, String msg) throws RemoteException
logRemote
in interface PBAServer
src
- the source identifier stringmsg
- a message to logRemoteException
- thrown for errorspublic static void main(String[] args)
args
- command line arguments; not usedCopyright © 2003, 2023, Oracle and/or its affiliates.