Creating a Java Component
You can create a Java component by starting with a WSDL file and generating the component implementation, or by creating the component and configuring it with an existing implementation.
Procedure
-
Choose an option and follow the relevant procedure.
Option Description Wizard - Create an SOA project selecting the SOA Project from WSDL project type.
- In the Component Details page of the wizard, specify Java for the component implementation type.
- Specify code generation details as described in Generate Java Component Implementation Reference.
Manual - Create an SOA project of any type.
- Open the composite created in the project.
- Do one of the following:
- Generate the Java implementation as described in Generating a Java Component Implementation or configure an existing implementation as described in Configuring a Java Components Implementation.
Command-Line - Create a command-line build file and specify an
sds.createComponent task. Use
<param name="..." value="..."/> subelements to specify details about the containing the plug-in that contains the component implementation. For example:
<sds.createComponent projectName="NewSoaProject" compositeName="MyComposite" componentName="MyJavaComponent" implementationLoc="/MyJavaProject/src/com/example/impl/MyJavaComponentImpl.java"> <param name="feature.id" value="my.custom.feature"/> <param name="feature.file.path" value="/NewSoaProject/Deployment Artifacts/MyCustomFeature.customfeature"/> <param name="create.new.feature" value="false"/> <param name="use.existing.feature" value="true"/> <param name="feature.version" value="1.0.0.qualifier"/> </sds.createComponent>
- Run the command-line with the build file.
A Java component is added to the composite and its implementation is configured.
Copyright © Cloud Software Group, Inc. All rights reserved.