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.
- Use the JBI Manager to add a deployed Service Unit to a composite application.
- Use the CASA Editor Palette to add an external Service Unit.
To use the JBI Manager to add a deployed Service Unit:
- If the CASA Editor is not open, in the Project window right-click your composite application and select Edit Application Configuration.
-
Open the Services window and expand the following nodes:
Servers > GlassFish V2 > JBI > Service Assemblies
- Expand the node of the Service Assembly to which you want to connect.
-
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.
-
Add any Consume or Provide endpoints you might need to the Service Unit by dragging the endpoints from the Palette.
-
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.
-
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:
- From the Palette, select the icon for an external Service Unit.
-
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.
-
Add any Consume or Provide endpoints you might need to the Service Unit by dragging the endpoints from the Palette.
-
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.
-
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