Application Module provides two Java files for writing codes and implementing business logic. It has two Java files :
<AMName>Impl.java file is where we write our code mostly to implement business logic.- <AMName>Impl.java file for Implementation classes
- <AMName>DefImpl.java for Definition classes
To generate the files :
1. Set the preference from Tools > Preferences>business Components and click check for files you need. The checked type of files will be generated automatically while creating Application Module. Same is true for EOs and VOs.
2. If the preference is not set, while creating an Application Module. You can mention the option of creating Java Files.
3. If point1 and point2 has not been done, then also you can create the java files after creation of AM by going to Java tab and click on the desired file type.
Once the <AMName>Impl.java file is generated, open it and write a code. Let us write a simple code to add three integers.
public Integer AddNumbers (Integer num1, Integer num2, Integer num3)
{
Integer finalNum = num1 + num2 + num3;
return finalNum;
}
Next step is to go to client Interface section of <AMName>AM.xml file and expose this method from client interface.
Now run this method in business component browse. To do that, right click on Application Module and say RUN.
From the new window window that came up, select Application , right click and select Service method.
Provide the input and test the result.




