genMapper command-line utility
Use the genMapper command to generate a component that bridges as Service Component Architecture (SCA) reference to a Java interface.
Purpose
This command generates a component that bridges an SCA reference to a Java™ interface creating files that you import into IBM® Integration Designer. After importing to IBM Integration Designer, you wire the Web Services Description reference and the Java interface to the generated component.
Syntax
>>-genMapper-- - -javaOutput-- -java_output_dir-----------------> >-- -scdlOutput-- -sca_output_dir-- - -name-- -java_class_file-><
Parameters
- -javaOutput java_ouput_dir
- The name of the directory where the system places the generated Java classes.
- -scdlOutput sca_output_dir
- The name of the directory where the system places the generated bridge component.
- -name java_class_file
- The fully qualified file name that contains the Java class or interface for which the bridge component is generated.
Restrictions
The input can contain a Java class, a stateless session bean, or a Java interface.
If the input is a Java class, the class can contain only one interface and the interface cannot extend other interfaces.
Example
This example generates a bridge component for the input interface com.ibm.mj.Customer. The system places the generated implementation class to c:\customer\src and the SCA component to directory c:\customer, which do not exist.genMapper -javaOutput c:\customer\src -scdlOutput c:\customer -name com.ibm.mj.Customer
Customermapper.component
Customermapper.wsdl
Customermapper.java
Copy the files from both generated directories to the directory of any module that requires the bridge component. You can then either import that bridge component intoIBM Integration Designer and wire the reference and interface to the bridge component or use the serviceDeploy command to create an enterprise archive (EAR) file to deploy to the server.
