100% found this document useful (1 vote)
527 views

TAFJ Debugging Using DesignStudio

This document provides instructions for debugging browser-based applications using an IDE. It describes how to configure a TAFJ project in Design Studio to enable debugging routines launched from the browser. Key steps include converting an existing project to a TAFJ project, linking the TAFJ.BP folder, modifying queue configurations, adding breakpoints to routines, and debugging the routines launched from the browser or TSM/tSA applications.

Uploaded by

akhtar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
527 views

TAFJ Debugging Using DesignStudio

This document provides instructions for debugging browser-based applications using an IDE. It describes how to configure a TAFJ project in Design Studio to enable debugging routines launched from the browser. Key steps include converting an existing project to a TAFJ project, linking the TAFJ.BP folder, modifying queue configurations, adding breakpoints to routines, and debugging the routines launched from the browser or TSM/tSA applications.

Uploaded by

akhtar
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Debugging using IDE for Browser

Information in this document is subject to change without notice.

No part of this document may be reproduced or transmitted in any form or by any means,
for any purpose, without the express written permission of TEMENOS HEADQUARTERS SA.

© 2018 Temenos Headquarters SA - all rights reserved.


Browser debug using IDE

Table of Contents

1. How to Title...........................................................................................................................................
2. Detailed steps.......................................................................................................................................

2
Browser debug using IDE

1. How to Title
 Debug in browser using DESIGN STUDIO.
 Launching TSM and tSA from IDE and performing debug.

2. Detailed steps
 Prerequisites:
To create TAFJ projects, design studio requires TAFJ plugins. TAFJ plugins are available in
%TAFJ_HOME%\eclipse\plugins folder. Link the contents of this directory to the directory
<DesignStudio_Home>\dropins. Also create the file <name>.link for e.g. tafj.link in
<DX_HOME>\dropins. Edit the tafj.link and add property file called path. Set path to the
absolute path or relative path from <DS_HOME> to %TAFJ_HOME%.
Kindly ignore if already set.

 Debug in browser using DESIGN STUDIO:

1. Create a general project in DESIGN STUDIO and convert it to a TAFJ project by “Toggle
TAFJ project nature.” Add tafj home, property file, t24 lib, java and classes path. Now
configure Database related setup.

3
Browser debug using IDE

TEST project converted to TAFJ project.

2. Now link the folder TAFJ.BP to new project created or to any other existing TAFJ projects.
TAFJ.BP is present inside <TAFJ_HOME>\appserver\basic\TAFJ.BP. By right clicking, the
project name -> New -> Folder -> Advanced -> Link to alternate location and add the
TAFJ.BP path -> click on Finish.

3. BrowserDebug – configurations:
3.1 Now open deployments folder copy the “BrowserWeb.war” to any local location and
rename it to “BrowserDebug.war”.

4
Browser debug using IDE

3.2 Open archive, BrowserDebug.war and navigate to following path “BrowserDebug.war\


WEB-INF” and open “jboss-web.xml”. Save it with jndi-name as t24DEBUGQueue and
t24DEBUGReplyQueue.

3.3 Now edit “jboss-classloading.xml” inside “BrowserDebug.war\WEB-INF” and rename it


as name="BrowserDebug.war".

3.4 Copy and paste “BrowserDebug.war” to deployments folder.

4. Now add queue and reply queue for DEBUG in respective standalone.xml record and save it.

5. Open BROWSER.LISTEN(which has been linked from TAFJ.BP) inside DESIGN STUDIO
and modify queue related configuration as follows. Save and compile the BROWSER.LISTEN
after making modifications.
connectionFactory = "jms/RemoteConnectionFactory"

5
Browser debug using IDE

requestQueue = "jms/queue/t24DEBUGQueue"
replyQueue = "jms/queue/t24DEBUGReplyQueue"
.
ctxenv<-1> = "java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory"
ctxenv<-1> = "java.naming.factory.url.pkgs=org.jboss.naming"
ctxenv<-1> = "java.naming.provider.url=http-remoting://localhost:9089" <provide the http or
remoting port number in which jboss is running>

6. Restart jboss.
7. Now add the routine (e.g. CURRENCY.b) to be debug, in tafj project (e.g. TEST) by creating
a new folder (e.g. TEST.BP), add breakpoint/debug statement at necessary places and
compile it as basic file.

6
Browser debug using IDE

8. Now run the BROWSER.LISTEN in debug mode by right clicking BROWSER.LISTEN.b and
select Debug as -> Basic program.

9. Launch T24 using BrowserDebug and when the follow reaches the break points Design studio
will take you to DEBUG perspective. You can navigate the routine as you do in a normal java
routine with eclipse.

7
Browser debug using IDE

Note: To avoid connection time out related issues kindly increase the same in browserParameters.xml
file under BrowserDebug.war

8
Browser debug using IDE

 Launching TSM and tSA from IDE and performing debug:

1. In Design studio create a run configuration and set as follows.

2. Click on Apply and then Run. Now TSM will be launched in Console as follows.

9
Browser debug using IDE

3. To launch tSA kindly set run configuration as below. And while running the configuration
kindly launch the agent by providing agent number when prompted.

10
Browser debug using IDE

11
Browser debug using IDE

4. If breakpoints/DEBUG statements are included in the routines then when agent launched
routine can be navigated for debug as usual in console window itself.

12

You might also like