WebSphere Enterprise Service Bus, Version 6.2.0 Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows


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 WebSphere® Integration Developer. After importing to WebSphere Integration Developer, you wire the Web Services Description reference and the Java interface to the generated component.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-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 we are generating the bridge component.

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
After the command completes, listing the directory c:\customer shows the following files:
Customermapper.component
Customermapper.wsdl
Listing the directory c:\customer.src shows the following file:
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 into WebSphere Integration Developer 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.


reference Reference topic

Terms of use | Feedback


Timestamp icon Last updated: 21 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.doc/doc/rref_genmappercommand.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).