Connecting to External Services

Use the CASA Editor to connect to external Services Units (Service Units available from another composite application). There are two ways to add a reference to an external Service Unit.

To use the JBI Manager to add a deployed Service Unit:

  1. If the CASA Editor is not open, in the Project window right-click your composite application and select Edit Application Configuration.
  2. Open the Services window and expand the following nodes:
    Servers > GlassFish V2 > JBI > Service Assemblies
  3. Expand the node of the Service Assembly to which you want to connect.
  4. Select the desired Service Unit and drag it to the External Modules area of the CASA Editor.
    Note: You can only drop Service Units accessing Service Engines, not Binding Components.
  5. Add any Consume or Provide endpoints you might need to the Service Unit by dragging the endpoints from the Palette.
  6. Connect the Service Unit to a JBI module or a WSDL port.
    You might have to first define the interface to a WSDL Binding before you connect to the binding. For more information, refer to Connecting Composite Application Components.
  7. Select the Edit icon of the external Service Unit to view or edit its properties.
    You can also use the Navigator window for advanced editing of the composite application.

To use the CASA Editor Palette to add an external Service Unit:

  1. From the Palette, select the icon for an external Service Unit.
  2. Drag the icon for the Service Unit to the External Modules section of the Design Area.
    If the External Modules section is not visible, it becomes visible during the drag operation.
  3. Add any Consume or Provide endpoints you might need to the Service Unit by dragging the endpoints from the Palette.
  4. Connect the Service Unit to a JBI module or a WSDL port.
    You might have to first define the interface to a WSDL Binding before you connect to the binding. For more information, refer to Connecting Composite Application Components.
  5. Select the Edit icon of the external Service Unit to view or edit its properties.
    You can also use the Navigator window for advanced editing of the composite application.
See Also
About the CASA Editor
Adding and Configuring WSDL Bindings
Viewing and Editing the Composite Application in the Navigator Window
Connecting Composite Application Components

Legal Notices