Entering content frame

Background documentation Using the Default DataSource Locate the document in its SAP Library structure

Purpose

When you install the SAP J2EE Engine, the installation procedure creates a default DataSource with several aliases that are used by some of the services running on the engine.

Unlike the objects you can create as described under JDBC Connector Service in the Administration Manual, the default DataSource is not associated to a particular application. While the other DataSource objects are started when all services on the SAP J2EE Engine servers are already running, the default DataSource is initialized when the JDBC Connector Service is started. This enables other services to use the default DataSource at their startup. You can also use it for your applications and deploy external aliases for it.

Recommendation

Use the default DataSource if the application uses the default schema that was created at installation time. Create a separate DataSource for each database schema that your application uses.

You can view the parameters of the DataSource using the Properties tab of the JDBC Connector Service in the Visual Administrator. For more information about the properties of the default DataSource, see Structure linkJDBC Connector Service in the Reference Manual.

Use

To use the system DataSource, complete the following steps:

·        Deploy an alias for the DataSource with your application

·        Use the alias to look up the DataSource in the relevant application component.

 

Leaving content frame