|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SessionReferenceProvider
The session reference provider can be implemented by a runtime environment that
has a session concept in order to provide JCo a simple reference to a session.
JCo is using the ID associated with a JCoSessionReference internally for stateful
function module invocations, i.e. the same physical connection is used for a sequence
of function modules. In a generally stateless environment, e.g. JCo standalone,
JCoContext.begin(JCoDestination destination)
starts such a sequence for a
destination.
JCoContext
Method Summary | |
---|---|
JCoSessionReference |
getCurrentSessionReference(java.lang.String scopeType)
This method is invoked by JCo in order to find out, in which session it is running. |
boolean |
isSessionAlive(java.lang.String sessionId)
JCo will invoke this method in order to check whether a session is still alive. |
void |
jcoServerSessionContinued(java.lang.String sessionID)
This method will be invoked before a subsequent RFC call for a JCoServer
session is passed to the JCoHandlerFactory . |
void |
jcoServerSessionFinished(java.lang.String sessionID)
This method will be invoked when a JCoServer session has finished, i.e. |
void |
jcoServerSessionPassivated(java.lang.String sessionID)
This method will be invoked after the processing of an RFC call in a JCoServer session has finished . |
JCoSessionReference |
jcoServerSessionStarted()
The following four methods will be invoked by the JCo runtime to notify the implementation of the SessionReferenceProvider (Session Management) about
the sessions initiated by an ABAP Application Server. |
Method Detail |
---|
JCoSessionReference getCurrentSessionReference(java.lang.String scopeType)
JCoContext
has been started, so that from now on the same
physical connection should be used for keeping alive the user context in the application
server ABAP. If the scope type is null
or the empty String, the default scope
should be used, according to the definition of the runtime environment.
Runtime environments that do not provide a scope management within sessions, can simply
ignore the scope type parameter in their implementation of a SessionReferenceProvider.
scopeType
- defines the scope, for which the session reference is needed
boolean isSessionAlive(java.lang.String sessionId)
sessionId
- The session ID, for which it should be checked whether the session is alive.
JCoSessionReference jcoServerSessionStarted() throws SessionException
SessionReferenceProvider
(Session Management) about
the sessions initiated by an ABAP Application Server.
This method will be invoked before the first RFC call from an ABAP Application
Server is passed to the JCoHandlerFactory
and as a consequence a session
has been started.
SessionException
- if the session reference provider runs into errorsvoid jcoServerSessionContinued(java.lang.String sessionID) throws SessionException
JCoServer
session is passed to the JCoHandlerFactory
. This will only occur, if
the server connection was turned to stateful by the server or the client application.
sessionID
- sessionID of the continued JCoServer
session
SessionException
- if the session reference provider runs into errorsJCoServerContext.setStateful(boolean)
void jcoServerSessionPassivated(java.lang.String sessionID) throws SessionException
JCoServer
session has finished .
sessionID
- sessionID of the passivated JCoServer
session
SessionException
- if the session reference provider runs into errorsvoid jcoServerSessionFinished(java.lang.String sessionID) throws SessionException
JCoServer
session has finished, i.e. the connection has been
or will be closed.
sessionID
- sessionID of the finished JCoServer
session
SessionException
- if the session reference provider runs into errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |