BPEL Designer and Service Engine User's Guide

ProcedureTo Prepare the Debugging Environment

  1. In the Services window, make sure that the GlassFish V2 Application Server is running. The Application Server is running if it has subnodes and is marked with a green triangle.

    If the server is not started, right-click it and then select Start.

    Image shows the Application Server is running
as described in context
  2. In the IDE, open the BPEL process in either the Source or Design view.

  3. Set breakpoints in the BPEL process.

    To set breakpoints in the Source view, click next to the line where you want to set the breakpoint.

    Image shows the Source view with a set breakpoint
as described in context

    To set breakpoints on the diagram, switch to the Design view, right-click the element and then select Toggle Breakpoint. A red square appears at the top of the element with a breakpoint.

    Image shows a Diagram element with a breakpoint

    The Toggle Breakpoint menu command is also available for the elements in the Navigator BPEL Logical View. For the elements with breakpoints, the Navigator shows a small red box (ReceiveItinerary).

    Image shows the Navigator element with a breakpoint
  4. Optionally, you can add watches to monitor XPath expressions. To add a watch, copy the XPath expression you want to monitor, choose Run -> Add Watch from the main menu, and paste the expression into the Watch Expression field. Click OK.

    Image shows the Watch Expression field used to
set a breakpoint in the source
    Note –

    You can also add XPath expressions that are not present in the code, but that would be valuable from the debugging point of view.