Book Image

Java EE Development with Eclipse - Second Edition

By : Ram Kulkarni
Book Image

Java EE Development with Eclipse - Second Edition

By: Ram Kulkarni

Overview of this book

<p>Java EE is a technology for developing enterprise class, scalable applications. With recent changes to Java EE specifications, JEE application development has become a lot simpler. However, recent changes have also added many new specifications, some of which compete with existing JEE specification. Along with JEE specifications and APIs, it is also very important to understand the entire application development process and tools that can help simplify and accelerate JEE application development.</p> <p>This guide provides a complete overview of developing JEE applications using Eclipse. The many features of the Eclipse IDE are explained. These enable the rapid development, debugging, testing, and deployment of JEE applications. You’ll explore not just different JEE technologies and how to use them (JSP, JSF, JPA, JDBC, EJB, web services etc.), but also suitable technologies for different scenarios.</p> <p>The book starts with how to set up the development environment for JEE applications and then goes on to describe many JEE specifications in detail, with an emphasis on examples. You’ll learn how to deploy an example application on Tomcat and Glassfish Application Server.</p> <p>You’ll create a simple application that reads from a queue, processes the request, and publishes results to a topic and Eclipse MAT (Memory Analysis Tool) to debug memory issues.</p>
Table of Contents (18 chapters)
Java EE Development with Eclipse Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Debugging a web application using Tomcat in Eclipse EE


We have already learnt how to configure Tomcat in Eclipse EE and deploy a web application in it from Eclipse (refer to the Configure Tomcat in Eclipse and Running JSP in Tomcat sections in Chapter 2, Creating JEE Project). We will use the Course Management application that we created in Chapter 4, Creating a JEE Database Application, using JDBC for debugging.

Starting Tomcat in debug mode

If you want to debug a remote Java process, you need to start the process by using the debug parameters. However, if you have configured Tomcat in Eclipse EE, you don't need to do this manually. Eclipse takes care of launching Tomcat in the debug mode. To start Tomcat in the Debug mode, select the server in the Servers view and click the Debug button in the Server view. Alternatively, right-click on the server and select Debug from the menu. Make sure that the project that you want to debug is already added to Tomcat; in this case, the project is CourseManagementJDBC...