TAFJ Debugging Using DesignStudio
TAFJ Debugging Using DesignStudio
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.
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.
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
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
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
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