Configuring Oracle Socket Adapter Connection Pooling

5-14 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 5–13 Oracle WebLogic Server Console - Settings for SocketAdapter Page

6. Click eissocketSocketAdapter. The Settings for

javax.resource.cci.ConnectionFactory page is displayed. 7. Set the KeepAlive connection factory property to true, as shown in Figure 5–14 . The connection pool feature for the Oracle Socket Adapter is enabled. Oracle JCA Adapter for Sockets 5-15 Figure 5–14 Oracle WebLogic Server Console - Settings for javax.resource.cci.Connectionfactory Page

8. Click Save. The Settings for javax.resource.cci.ConnectionFactory page is

displayed with the message, Deployment plan has been successfully updated, as shown in Figure 5–15 . 5-16 Oracle Fusion Middleware Users Guide for Technology Adapters Figure 5–15 Oracle WebLogic Server Console - Settings for javax.resource.cci.Connectionfactory Page

5.4 Configuring Oracle Socket Adapter

The following tasks are required for configuring Oracle Socket Adapter: ■ Modifying the weblogic-ra.xml File ■ Modeling a Handshake ■ Designing an XSL File Using the XSL Mapper Tool ■ Specifying a TCP Port in a Configuration Plan For an Oracle Socket Adapter

5.4.1 Modifying the weblogic-ra.xml File

To configure Oracle Socket Adapter, you must specify the value of the properties listed in Table 5–1 in the weblogic-ra.xml file. You can update these properties from the Oracle WebLogic Server Administration Console. For more information, see Section 2.19, Adding an Adapter Connection Factory. Note: You can modify connection pool parameters by using the Connection Pool tab of Oracle WebLogic Server Administration Console. Oracle JCA Adapter for Sockets 5-17 The following is a sample weblogic-ra.xml file: wls:connection-instance wls:descriptionSocket Adapterwls:description wls:jndi-nameeissocketSocketAdapterwls:jndi-name wls:connection-properties wls:pool-params wls:initial-capacity0wls:initial-capacity wls:max-capacity200wls:max-capacity wls:capacity-increment5wls:capacity-increment wls:shrinking-enabledtruewls:shrinking-enabled wls:shrink-frequency-seconds60wls:shrink-frequency-seconds wls:connection-creation-retry-frequency-seconds2wls:connection-creation-retry- frequency-seconds wls:connection-reserve-timeout-seconds5wls:connection-reserve-timeout-seconds wls:match-connections-supportedtruewls:match-connections-supported wls:use-first-availabletruewls:use-first-available wls:pool-params wls:transaction-supportNoTransactionwls:transaction-support wls:reauthentication-supporttruewls:reauthentication-support wls:properties wls:property wls:nameHostwls:name wls:valuelocalhostwls:value wls:property wls:property wls:namePortwls:name wls:value12110wls:value wls:property wls:property wls:nameTimeoutwls:name Table 5–1 Oracle Socket Adapter Configuration Properties Property Description Host In case of outbound interaction, the system name on which the socket server is running, to which you want to connect. In case of inbound interaction, it is always localhost. Port In case of outbound interaction, it is the port number on which a socket server is running, to which an adapter connects. In case of inbound interaction, it is the port number on which the socket adapter listens for incoming connections. Timeout With this value set to a nonzero timeout interval, a read call on the InputStream associated with this socket blocks for only this amount of time. If the timeout interval expires, then a java.net.SocketTimeoutException is raised though the socket is still valid. The option must be enabled before entering the blocking operation to have effect. The timeout interval must be greater than 0. A timeout interval of 0 is interpreted as an infinite timeout. The value is in milliseconds. KeepAlive Applicable only in case of outbound interactions. Should be set to true to use connection pool feature. BacklogQueue Applicable in case of inbound interactions. This value indicates the maximum queue length for incoming connection indications a request to connect. If a connection indication arrives when the queue is full, then the connection is refused.