Deploying a data access application
Now that we have created a JDBC provider and a data source which uses the Oracle provider, we are now ready to deploy a data access application. Our application comes in the form of an EAR file called HRLister.ear, which can be downloaded from the Packt Publishing website at the following location: http://www.packtpub.com.
The HRLister EAR file contains a single web application which, in turn, contains a servlet called listtable. The application is used to show how to deploy an application which uses a resource reference. The resource reference uses a JNDI lookup to find the data source and allows the application to connect to the HR database.
Our application contains several deployment descriptors; one is called ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access