Start of Content Area

Function documentation Resource Adapter Classloading  Locate the document in its SAP Library structure

Use

When a resource adapter is deployed, the system associates it with a classloader. It is used to initialize the adapter’s classes. Resource adapter classloading also defines the access of other components to a resource adapter.

Features

Resource adapter classloading depends on whether you deploy the resource adapter as a standalone module, or as a part of an application.

When you deploy an application, all components that are in it are added to a single classloader. Therefore, if you deploy your resource adapter within an application, it is added to the application classloader and initialized when you start the application.

When you deploy a standalone resource adapter, it is added to a default classloader called connector:default. You can change the classloader by setting the connector-group property of the resource adapter at deploy time. This property is added to the additional deployment descriptor of the adapter. For more information, see <connector-group> tag in connector-j2ee-engine.dtd. In this case, the resource adapter is loaded by a classloader called connector:<connectorGroup>.

Recommendation

Define separate classloaders for the standalone resource adapters that you deploy.

 

 

End of Content Area