Debugging an Enterprise JavaBean

Debugging an EJB can be a simple task, or it can be a nightmare. Some EJB containers allow you to use a debugger easily, while others require you to jump through hoops. Some containers even come with their own debuggers that can plug right into the beans almost effortlessly. For most containers, however, you must use a fairly standard debugging technique. Basically, you put the Java Virtual Machine into debugging mode and then attach a remote debugger to the program.

Debugging Under JDK 1.2

To use remote debugging with any Java program, you must include the -debug flag in the java command. Most Java 1.1 Virtual Machines automatically turn off the Just-In-Time compiler when they see -debug, but the standard Java2 ...

Get Special Edition Using Java™ 2 Enterprise Edition 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.