Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Building Java Services in Your Own IDE | Using the jcode Utility
 
Using the jcode Utility
 
Using jcode make/makeall to Compile Java Source
Using jcode frag/fragall to Split Java Source for Designer
Using jcode comp to Create Java Source from Fragments
Using jcode Shortcut Commands
When building a Java service in your own IDE, use the jcode utility to perform actions that Designer performs when using Designer to build a Java service. These actions include compiling the Java service and saving it as code fragments that Designer uses to display the service in the Designer Java Service Editor.
Before you use the jcode utility, add specially formatted Java comments (jcode tags) to the Java source code to designate various segments of the source code. For more information, see Adding Comments to Your Java Code for the jcode Utility.
The following table describes the main functions of the jcode utility.
jcode Command
Use to...
make
makeall
Examine a package to determine the source files that have been updated since the last compilation, then compile those source files and save the resulting class files in the classes directory of the package.
*Use make to compile the source files in a single folder of a package.
*Use makeall to compile the source files in all the folders of a package.
frag
fragall
Split the source files in a package into fragments that the jcode utility then stores in the namespace (ns) directory of the package. As a result, when you view the service in Designer, Designer displays the code from the updated fragments.
*Use frag to fragment the source files in a single folder of a package.
*Use fragall to fragment the source files in all the folders of a package.
comp
Build a composite from the code fragments defined in the namespace (ns) directory of a package to rebuild the Java source. The jcode utility saves the resulting Java source is in the source directory of the package.
Note:
Use this command if the Java source is lost or corrupted in some way and you need to recreate it.
When building a Java service in your own IDE, you use the two-step process of making (compiling) and fragmenting the source code often. To make these actions easier, the jcode utility supports the shortcut commands described in the following table. For more information about these shortcuts, see Using jcode Shortcut Commands.
jcode Shortcut
Use to...
update
Compile and fragment only source files that have changed for a single package.
upall
Compile and fragment only source files that have changed for all Integration Server packages.
hailmary
Compile and fragment all source files (whether they have changed or not) for all Integration Server packages.