Creating a sample Java project for profiling

We will create a simple standalone Java application so that it is easy for you to learn how to profile using VisualVM. Although it will be a standalone application, we will create classes that are similar to those we created for the CourseManagement web application in some of the previous chapters, particularly CourseDTO, CourseBean (JSP bean), CourseService (service bean), and CourseDAO (for database access).

  1. Create a standard Java project in Eclipse, named CourseManagementStandalone. Create the CourseDTO class in the packt.jee.eclipse.profile.dto package:
package packt.jee.eclipse.profile.dto; public class CourseDTO { private int id; private String name; private int credits; //skipped Getters ...

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.