Show TOC

ManagedConnectionFactory ConfigurationLocate this document in the navigation structure

Use

The ManagedConnectionFactory instance creates physical connections to the Enterprise Information System (EIS). You can specify the configuration properties of the ManagedConnectionFactory in the resource adapter as well as in the respective connection definition. These properties are stored in the standard deployment descriptor of the resource adapter ( ra.xml ).

Activities

The fields for the configurable properties are specified using the appropriate getter and setter methods in the ManagedConnectionFactory implementation class. You have to set the values for these properties at the deployment descriptor or to specify them at runtime.

In addition, you can define resource adapter-specific configurable properties of different types.

Example
            <config-property>
        <config-property-name>UserName</config-property-name>
        <config-property-type>java.lang.String</config-property-type>
        <config-property-value>Administrator</config-property-value>
</config-property>
<config-property>
        <config-property-name>ConnectionURL</config-property-name>
        <config-property-type>java.lang.String</config-property-type>
        <config-property-value>jdbc:sapdb://localhost/TST?timeout=0</config-property-value>
</config-property>