
If you are using an adaptive RFC model in a Web Dynpro application, two JavaConnector (JCo) destinations are required. The application receives the metadata over the first connection, and application data is supplied to the Web Dynpro application over the second connection.
When you deploy a Web Dynpro application that uses an adaptive RFC model, the required JCo destinations are created in the development component containing the RFC model.
You can, however, also use the Web Dynpro Content Administrator to define additional JCo destinations that are not deployed in a development component, irrespective of the Web Dynpro application. These JCo destinations are known as system-defined JCo destinations.
The data for JCo destinations is stored in the System Landscape Directory (SLD).
At runtime, the JCo connection is implemented with a pool. This pool is a set of client connections for a specific JCo destinations. The pool can automatically generate new connections for an SAP system and provides methods to return the connections to the pool if they are not needed any more. It also checks periodically which connections are no longer used by the application and can therefore be closed.To minimize the use of resources, you can define the maximum number of connections that can be contained in a pool by using the option Maximum Pool Size. The pool keeps as many JCo connections open as you defined for the maximum pool size and these connections do not have to be newly created. You can reuse these connections any time. The JCo pool can, however, contain more connections than you defined for the Maximum Pool Size. This number of connections is specified by the option Maximum Connections. This is the maximum number of connections that can be set up at runtime. If the number of Maximum Connections is higher than the number of Maximum Pool Size, the JCo connections that are not needed are immediately closed.If the application needs more connections than defined for Maximum Connections, the required connections are sent to a queue and can only be opened when other JCo connections are closed.
Assign the JCo destination to a Java Engine cluster. A cluster means a distributed system of the Java Engine Dispatcher and further server elements. This system identifies the client as one unit. By default the locally installed Java Engine is selected.
Select the data type for the JCo destination. The destination type for data type Dictionary metadata can only be a load-balanced connection. You therefore cannot select a single server connection.
You then define the destination type. It can be one of the following:
However, you should only use a single server connection for debugging a Web Dynpro application.
You also have to make the settings for Secure Network Communication (SNC).
Note that you have to make other settings to activate the Secure Network Connection on your Java Engine.