...
The Annotations-TestJDBCAccess.zip file provides a BankDB.sql
, WebAppJDBCAccessAnnotations.war
which is the WAS we will be deploying and a sample of the generated deployment plan WebAppJDBCAccessAnnotations_generatedPlan.xml
. Download and extract the zip file to a directory of your convenience.
WebAppJDBCAccessAnnotations.war
includes a Servlet and a JSP. The following excerpt shows the annotation part the wizard has identified and will likely be prompting for additional information while deploying the application.
Code Block |
---|
| java |
---|
| java |
---|
borderStyle | solid |
---|
title | Excerpt from ListCustomers.java |
---|
|
...
import javax.annotation.Resource;
...
/**
* Servlet implementation class for Servlet: ListCustomers
*
*/
public class ListCustomers extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
@Resource(name = "jdbc/MyDataSource")
private DataSource dataSource;
...
|
With Geronimo up and running open the Administration Console and click on Plan Creator from the left menu.
EJB access
JMS access
...