Aug 14 2009

Compressing a Servlet Project into a .war file

In order to compress a ‘pets’ servlet/web application/project into a "Web Archive" file named pets.war which can easily be imported in Eclipse or other IDE”s or can easily be transported to another server, Execute the following commands in the terminal:

Continue reading

Aug 4 2009

Resource Needed for JDBC Connection Pooling Support

In order to get JDBC working with Connection Pooling Support, you will need to add the latest version of the following files to your Library:

Put the above files in your WEB-INF/lib folder and let your IDE(Eclipse) know the existence of of the above files.

You will also need to add the following imports at the the top of files where you want access to CPDS:

  • import org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS;
  • import org.apache.commons.dbcp.datasources.SharedPoolDataSource;

Page 1 of 11