HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)

Writing CPI-C Applications
Java CPI-C Considerations
Chapter 2 101
Java CPI-C Considerations
This section summarizes the information you need to consider when
writing Java CPI-C applications.
Using Java CPI-C Classes
The Java CPI-C package is named COM.ibm.eNetwork.cpic. This
package consists of a Java class that contains:
A method for each of the supported CPI-C calls
Classes for use as parameters to these calls
When writing a Java program to use the CPIC class, use the following
import statement in the Java source to import the CPIC package:
import COM.ibm.eNetwork.cpic.*;
Constant Values
The Java CPI-C class defines a number of constant values for the
maximum length in bytes of specific CPI-C parameters. These constants
are shown in Table 2-5, “Java CPI-C Constants.” You should use these
constants in your program rather than specifying the lengths explicitly.
Table 2-5 Java CPI-C Constants
Parameter Length Java CPI-C Constant
Conversation ID Length CM_CID_SIZE
Context ID Length CM_CTX_SIZE
Log Data Size CM_LD_SIZE
Mode Name Length CM_MN_SIZE
Partner LU Name Length CM_PLN_SIZE
Security Password Length CM_PW_SIZE
Security User ID Length CM_UID_SIZE