Connecting to External Services
Use the CASA Editor to connect to deployed services available from another composite application. You can connect to external services by dragging a deployed service unit to the External Modules section of the CASA Editor.
You can also drag an external Service Unit from the Palette to the External Modules section. After you drag the external Service Unit, you must configure it before it can be connected to components in the composite application.
The following procedures assume you have deployed an additional composite application that contains services to which you want to connect.
To connect to deployed services from another composite application:
- Open the CASA Editor. To do this, in the Project window, select and expand the project node, and double-click the Service Assembly node.
-
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 representing services, 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 Binding.
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 add and configure 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 Binding.
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