This tutorial shows how to use the CASA Editor to edit the configuration of
a composite application. The composite application you configure and build is
the Synchronous Sample composite application provided with the NetBeans 6.1
distribution.
The tutorial illustrates the following:
Building a composite application from within the CASA Editor
Deleting a connection to an existing WSDL endpoint in the existing composite application
Adding a connection to a new WSDL endpoint to the composite application
This section shows how you can use the CASA Editor to build a composite application.
To open the CASA Editor and build the composite application:
In the NetBeans IDE, expand the SynchronousSampleApplication node in the
Projects window, right-click Service Assembly and select Edit.
Note: To invoke the CASA Editor in NetBeans 6.0, right-click the composite application in the Projects window and select Edit Application
Configuration.
The CASA Editor opens in the NetBeans IDE, as shown in the next step, displaying
the Design View of the Synchronous Sample application.
The CASA Editor creates and modifies a .casa file, which contains
the configuration information for the composite application. For this sample,
the CASA Editor created the SynchronousSampleApplication.casa file.
In the CASA Editor, select the Build Project icon to build the composite
application.
The Output window displays messages about the build.
When the build successfully completes, the Design View displays a WSDL port
endpoint, a JBI module, and the connection between the endpoint and the JBI
module.
This section shows how to test the newly configured composite application.
To run a test case for the composite application:
In the Projects Window of the NetBeans IDE, expand the SynchronousSampleApplication > Test
node, right-click the default test case, TestCase0, and select Properties.
In the Properties window for TestCase0, select the Edit button for the
Destination property.
Replace the default Destination property with the destination from the
previous procedure:
http://localhost:18181/service
Click OK, and then close the Properties window.
Right-click the SynchronousSampleApplication node, and select Deploy.
In the Select Server window, specify the GlassFish Application Server.
The Output window informs you when the composite application has been successfully
deployed.
In the Services window of the NetBeans IDE, expand the servers > GlassFish V2 > JBI > Service Assemblies
node.
Notice that the SynchronousSampleApplication Service Assembly has been deployed.
You can also view the properties of the Service Units within the Service Assembly
to see details of the composite application.
In the Projects window, right-click the TestCase0 and select Run.
The JUnit Test Results window indicates that the test case was successful.