Show TOC Start of Content Area

Background documentation Non-Managed Mode  Locate the document in its SAP Library structure

In the examples for the SAP Web AS Java, which supports JCA, the connection factory is obtained with a command such as the following:

IConnectionFactory conFactory =

(IConnectionFactory) context.lookup("(IConnectionFactory) initctx.lookup("deployedAdapters/JDBCFactory/shareable/JDBCFactory");

 

The non-managed mode has no JNDI context to obtain a connection factory so the connector has to create a manager connection factory instance to generate a client connection factory (CCI) with the following commands:

JDBCManagerConnectionFactory mcf = new JDBCManagedConnectionFactory();

IConnectionFactory conFactory =

            (IConnectionFactory) mcf.getConnectionFactory();

Deployment

The GenericConnector.JAR file for the connector and all other JAR files required by the connector must be copied into the global library folder of the application server.

 

 

End of Content Area