The SessionManager and SessionInfo Objects
Use
The SessionManager Object
RFC function calls require a connection to R/3.
When using the Java RFC Class Library you can set up and start a connection once, and then you can use that connection for multiple calls.
The Java RFC SessionManager object handles the different aspects of the connection to R/3 for RFC calls. Once you
set up the required connection information, the SessionManager handles the session. As part of this role, for example, the SessionManager ensures that any objects created during the session contain the necessary connection properties.The SessionManager can handle a single connection. If you wish to use
multiple connections, use the FactoryManager object, instead.The SessionManager is a singleton (meaning that there is only one instance of it).
The SessionInfo Object
The SessionManager uses the SessionInfo object to hold connection information.
The information required to make a connection is divided into three categories:
Category |
Information |
Middleware information |
Description of the implementation of the middleware software you are using with the Java RFC Class Library. In case of the Orbix middleware, also information on the computer acting as the Object Request Broker (ORB) server |
Connection information |
Different parameters of the R/3 system to connect to, such as R/3 application server name and system details |
User information |
User logon details such as user name, password, and language |
The Java RFC SessionInfo object contains all of the above categories of connection information.
MiddlewareInfo, ConnectInfo, and UserInfo Objects
The SessionInfo object comprises the MiddlewareInfo, ConnectInfo, and UserInfo objects. They each contain one of the categories of the information in the SessionInfo object.
Object |
Contains |
MiddlewareInfo |
Middleware information |
ConnectInfo |
Connection information |
UserInfo |
User information |
Integration
The following diagram summarizes the relationship between the various connection-related objects.
See Also
The Java RFC Properties Files, Setting Up and Starting a Session, Using the Properties Files to Set Up SessionInfoAlso see the Java RFC HTML Reference documentation for the details of each of the classes.