0% found this document useful (0 votes)
110 views13 pages

JE - Quick Learning

This document provides instructions for creating a Java project in DS, adding necessary libraries and files, setting debug ports, and placing breakpoints to debug a Java program integrated with a T24 environment. It also provides high-level steps for creating a template in ETB by defining a record, generating an API jar, and updating the module.xml file. The document outlines the basic program structure with different method types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
110 views13 pages

JE - Quick Learning

This document provides instructions for creating a Java project in DS, adding necessary libraries and files, setting debug ports, and placing breakpoints to debug a Java program integrated with a T24 environment. It also provides high-level steps for creating a template in ETB by defining a record, generating an API jar, and updating the module.xml file. The document outlines the basic program structure with different method types.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Java Extensibility – Quick Learning

How to create JAVA project in DS ,

1. Create a new Java project,

2. Provide the relevant project name,

3. Click on next and select libraries


4. Select Add Library and then User Library. Click on New and provide the folder name as t24lib

and add the external jars from the below path,


5. Click on okay it will apply the jar details to the project and add the sensitive jar tafjClient.jar ,
slf4j.jar(debug logger) and json.jar(for generating the json format output) from the below path
to our pack,

Json.jar will be taken from /TAFJ/ext path

6. And click on finish button.


7. Add essential package details to our Java project
8. Give the prompt name to the package

9. Now create a new class file and start the java program
10. Export the class into jar pack.

11. Select the jar file


12. Browser the exact t24lib/locallib path and provide appropriate jar name

13. Click finish


14. Update the jar details in the module.xml file (in MSB for dev deployment team will take care of
it and for local instance need to update the module.xml file)

15. Save it and restart the jboss to trigger the routine in our work place.
16. Setting Debug port,

Individual has received the debug port,( mentioned in our instruction notes)

17. Open the DEBUG perspective from the window menu


18. click on DEBUG configuration

19. Add the details of our java pack, debug port and then click on apply and debug

20. Now place the breakpoints(when we double click on the column it will automatically raise a
breakpoint,like DEBUG in our TAFC/F code) in our routine as below,
21. Try to run the program from T24 environment before that run the debugger in DS

22. Now It will trigger the debug,

- Debug commands,
F5 – see the routine flow
F6 – Move to next line
F8 – Move to next Break point
- Checking the current line variables
Template creation in ETB :

1. We need to create the record in EB.TABLE.DEFINITION and commit the records


2. Now create a DS project as below,(in MSB we are creating this in server 27)

3. Toggle the Models folder into TAFJ and provide the TAFJ path
4. Provide Database details as given below
Click on finish button.

Now select the below menu,


it will ask where to save the API jar then select path and commit . It will take maximum 45 mts to
build jar pack and place it under respective t24lib path and update in module.xml and restart the
jboss.

Program:

1. Nofile Enquiry
Methods:
2. Build routine
Methods:
3. Conversion routine
4. Service routine
5. Deal Slip Format routine
6. Validation routine

You might also like