O'Reilly logo

Java™ Oracle® Database Development by David J. Gallardo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging with JDeveloper

An important feature of JDeveloper is its ability to debug EJBs running in either the embedded server or a remote application server. We'll take a brief look at local debugging here. For information about remote debugging, consult Oracle's JDeveloper documentation.

To debug a program, we first need to set one or more breakpoints in our program. For example, open HelloWorldClient.java by double-clicking on the filename in the System Navigator. Locate the following line:

helloWorld = helloWorldHome.create(  );

Clicking on the number to the left of this line will set a breakpoint, indicated by a red dot that replaces the line number. Also set a breakpoint in our EJB, HelloWorldBean.java, at this line:

 return "Hello, world"; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required