Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop Client applications > Deploy client applications > Deploy and running a Java EE client application > Deploy a Java EE client application
Enable client use of data sources
If a Java EE client application accesses a database directly, provide the database drivers on the client machine, and configure the data source provider (JDBC provider) and data sources. Instead of accessing the database directly, IBM recommends that your client application access the database through an enterprise bean.
WAS and the Application Client for WAS do not provide client database drivers to be used directly from a Java EE client application. We can contact your database vendor to get client database driver code and licenses.
Data sources configured on the server and looked up on the client do not participate in global transactions.
Instead of accessing the database directly, IBM recommends that your client application access the database through an enterprise bean. This technique eliminates the need to have database drivers on the client machine, because the database access is handled by the enterprise bean running on WAS. It also enables the client application to take advantage of the pooling and additional database functions provided by the server.
For a current list of data source providers that are supported on WAS, see the WAS prerequisite website.
Procedure
- For direct access from a client to the database, install the client database drivers on the client machine. For information about installing database drivers, see the documentation provided by your database vendor.
- Configure a data source provider and a data source for the client application Use the Application Client Resource Configuration Tool (ACRCT) to define the data source provider and a data source in the EAR file for the client application. The client application uses this configuration to resolve and create an instance of the data source provider and data source.
- Configure a new data source provider. This provider describes the JDBC database implementation for your client application.
- Configure a new data source This describes the client properties of the database your client application uses.
Related
Configure new data source providers (JDBC providers) for application clients
Configure new data sources for application clients