Deploying and Testing the Composite Application
In this section, you deploy the Composite Application project and then test the deployed application. Start the Sun Java System Application Server before deploying the project. See Starting the GlassFish V2 Application Server.
TDCAPPDB
To Deploy the Composite Application
Before You Begin
Troubleshooting
- Stop the GlassFish V2 Application Server and Restart to ensure the connection.
- Logout of the Sun Java System Application Server Admin Console and Login.
- Go to Resources —> JDBC —> Connection Pools —> Choose the defined Connection Pool.
For example, mysqlpool
- Click the Connection Pool.
The Edit Connection Pool screen is displayed.
- Ping the Connection Pool.
The following confirmation message box is displayed.
Ping Successful
Steps
1 Select the project node in the Projects window.
For example, DBBCSampleCompositeApp
2 Right-click and choose Deploy.
After successful deployment of the project the following message appears in the Output window:
BUILD SUCCESSFUL (total time: 18 seconds)
TTCAPPDB
To Test the Composite Application
1 Click Test.
2 Right-click and select New Test Case.
3 Enter the Test Case Name.
For example, DBBCTestCase
4 Click Next.
5 Select the WSDL Document.
a Select the following:
For example, SOAPWSDL.wsdl from BpelModuleSample : Process Files
Note - One WSDL document must be selected.
b Click Next.
c Select the following:
SOAPWSDLOperation from SOAPWSDLPort (Binding=”SOAPWSDLBinding”)
Note - One operation to text must be selected.
6 Click Finish.
The Source Code is as shown.
7 Enter the string values.
For example,
* NAME — Nano Apple
* CUSTOMER_ID — 3
When you enter the string values in the Input.xml window, the output console displays Retrieve.xml. This window displays the location to save the data.
8 Right-click the Test Case and click Run.
For example, DBBCTestCase
A confirmation box to overwrite the Output is displayed. Click Yes to overwrite.
The Output is as shown in the illustration.
Debug the Test Case
You can debug the test case.
TDTCDB
To Debug the Test Case
Right-click on the Test Case and select Debug.
For example, DBBCTestCase1
A message is displayed as shown in the illustration.
Watch Video
Checking the Flight Details Using Tables in Database Binding Component
Previous
See Also
Return to Using the Database Binding Component