uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

6.9 Creating Java programs to be used in the custom function

You can use a Java program as the function using the custom function. You can use this for processes other than those in other functions provided by uCosminexus Service Architect.

Custom function has following types:

This section describes the method of creating Java program invoked from Custom function. In Custom function, invoked Java program is referred as transformation function. For details on how to invoke a Java program, see "6.5.23 Invoke a Java program created by the user".

Create the transformation function by the following procedure:

  1. Creating the transformation function definition file
    Create the transformation function definition file defining the configuration of the transformation function. For details about how to create the transformation function definition file, see 6.9.1 Creating the Transformation Function Definition File.
  2. Creating the Java form file
    Create the Java form file to be used when coding the Java program on the basis of the created transformation function definition file. For details about how to create the Java form file, see 6.9.2 Creating the Java form file.
  3. Coding, building and debugging Java programs
    Code, build and debug Java programs using Java development tools. For details about how to code, build and debug Java programs, see 6.9.4 Coding, building and debugging Java programs.
  4. Packaging Java programs
    Package the Java program created using building tools in a jar file. For details about how to package Java programs, see 6.9.5 Packaging Java programs.
    Note
    • Memory requirement (stack memory) increases according the number of arguments in the invoked Java program. If there are many arguments, stack overflow error might occur. Aim for a maximum of 10 arguments.
    • Resource secured at the time of invoking Java program and maintained even when the process ends. Therefore, when high load is applied on entire system, OutOfMemoryError might occur due to causes like insufficient Java heap or insufficient Perm heap. Due to this, you must implement process to release resources properly or error processing like roll back, if OutOfMemoryError occurs.
Organization of this section
6.9.1 Creating the Transformation Function Definition File
6.9.2 Creating the Java form file
6.9.3 Referring to external jar from transformation function
6.9.4 Coding, building and debugging Java programs
6.9.5 Packaging Java programs