Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Service Development Help | Using the Local Service Development Feature | Building Java and C Services
 
Building Java and C Services
When you check out a project containing Java or C/C++ services from the VCS repository, the services might not be operational. That is, the projects might not contain the .java and .class files that Integration Server needs to execute the service. Hence, before executing the Java or C/C++ services, you must build those services.
Designer automatically rebuilds the Java and C/C++ services in a local service development package, when you perform any VCS operations on the package or project in the local development server
Before checking out Java or C/C++ services, you must:
*Ensure that the system environment variable PATH is set to include JDK_directory \bin.
--OR--
*Ensure that the watt.server.compile property is set to JDK_directory \javac -classpath {0} -d {1} {2} in the config.ini file that is located in the Software AG_directory \eclipse\v36\configuration directory.
For example,
watt.server.compile=C\:\\softwareag\\jvm\\jvm160_32\\bin\\javac
-classpath {0} -d {1} {2}
To ensure that Designer automatically builds the Java and C/C++ services, you must do the following:
*Add VCS project nature to the packages that contain the Java or C/C++ services, if these packages are not created in the local Integration Server but are available in the VCS repository. To do this, right-click the package in the Package Explorer view and select Configure > Convert to Local Service Development Project. This also adds the Java project nature to the package.
*Select the Build Automatically workspace preference. To do this, select Project > Build Automatically.
Upon building a Java service, Designer creates the .java and .class files. In case of C/C++ services, Designer generates the Java class associated with the C/C++ service.