Entering content frame

Function documentation ManagedConnectionFactory Configuration Locate the document in its SAP Library structure

Use

When deploying a resource adapter, you can specify a set of configurable properties. They are used for the configuration of the ManagedConnectionFactory instance that creates physical connections to the Enterprise Information System (EIS).

These properties cannot be changed at runtime. They are stored in the standard deployment descriptor of the resource adapter (ra.xml).

Activities

The fields for the configurable properties are implemented using getter and setter methods in the ManagedConnectionFactory implementation class. You have to set the values for these properties at deployment time.

The following properties are defined in the J2EE Connector Architecture specification:

·        ServerName – the name of the EIS server – for example, a database server

·        PortNumber – the port where the server listens for connection

·        UserName – a valid user name for the resource system

·        Password – a relevant password for the specified user

·        ConnectionURL – the URL of the the resource system

These properties are of java.lang.String type.

In addition, you can define resource adapter specific configurable properties of different type. The type of the property is specified as Java fully qualified name – for example, java.lang.Float, java.lang.Boolean, and so on.

You can remove and modify properties as well.

Example

Here is an example of configuration properties for a resource adapter that provides connectivity to a database:

<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>

 

 

 

Leaving content frame