Platform Framework
R24 AMR | Min(s) read

Debugging Sessions in Application Server

This section shows how to debug sessions in JBoss application server, which is similar to other application servers.

The procedure steps in this user guide are tested on JBoss EAP 7.0.0.GA.

You can debug sessions in JBoss application server using the following procedure.

  1. Enter a debugging port (-Djbc.debug=<a_free_tcp_port>) using jbc.debug option to be able to debug your Temenos Transact running in an application server. For example, locate your starting script and specify the TCP port number as shown below.

    ./standalone.sh --server-config=standalone-utp.xml -Djbc.debug=10314 . . .

  2. Start your server.
  3. Select Run>Debug Configurations… in Eclipse.

  1. Choose JBC Remote in the dialog box that appears.

  1. Click New Launch Configuration and specify the following configurations for JBC Remote:
    • Container project
    • Host
    • Port
    • Connection Timeout (secs)
    • Redirect Output

    For more information on the JBC Remote configurations, see New Launch Configuration.

  1. Click Apply and debug to start debugging JBC on the server. The below screen captures display the Console and Debug views, respectively.

    The below screen capture shows a new Session created. You can suspend, resume, and put break points, to make it function as a normal session.

    If you stop your debug target, the application server is not stopped, but the target is disconnected and the server runs normally.

New Launch Configuration

The below table lists the fields in the New Launch Configuration dialog box and the corresponding user action.

Field

User Action

Container Project

Choose the project, which has the sources corresponding to the deployment in the app server.

You can click Browse... to view the projects with TAFJ Nature.

Host

Enter the host name or IP on which your application server is running.

Port

Enter the TCP port you specified in -Djbc.remote on your application server.

Connection Timeout (sec)

You can define the seconds after which the Eclipse must stop waiting for the application server, in case you launch the debug target before your application server.

Redirect Output (CRT, PRINT) to IDE (Eclipse)

You must enable this checkbox to view output in your Eclipse IDE.

Put Eclipse in “Listen” mode (eg for API debug) if launched from JAVA

You must not enable this checkbox for debugging in application server.

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:07:28 PM IST