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
    1. Create an SOA project selecting the SOA Project from WSDL project type.
      Note: You can generate Java component with two or more WSDLs containing the same operation name.
    2. In the Component Details page of the wizard, specify Java for the component implementation type.
    3. Specify code generation details as described in Generate Java Component Implementation Reference.
    Manual
    1. Create an SOA project of any type.
    2. Open the composite created in the project.
    3. Do one of the following:
      • Click the Java icon in the Palette and click the canvas.
      • Click the canvas and click the Java icon in the pop-up toolbar.
    4. 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
    1. 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>
    2. Run the command-line with the build file.
    A Java component is added to the composite and its implementation is configured.