In part 3 of the SOA Composite Application Database Adapter Demonstration Tutorial, we are going to deploy and test our application.
1. Start the Oracle JDeveloper.
2. To deploy the code from JDeveloper, we first need to create a connection to the Application server, where we are planning to deploy the code.
3. Click on Resource Palette on top right of the JDeveloper.
4. Select the Connection Name and Connection Type:
5. Specify username and password to authenticate the connection.
6. Add the connection information: like domain name, host and port information.
7. Click NEXT to test the connection:
8.Click NEXT and Finish. Now, Click on Resource Palette on top right of the Jdeveloper and expand the newly created connection.
9. Now, as we have created the connection. Its time to do the deployment of our application. Right Click Account Status Application –> Deploy –> Account Status as shown in the figure below:
10. Select deployment action from the list below:
11. Select composite version ID.
12. Select the newly created application server connection, then choose the target server:
13. Click NEXT to verify Deployment Summary and then Click FINISH. From the server-diagnostic logs you will see the message for successful deployment.
14. Now, as we have deployed the application. Now, it`s time to test the application.
15. Login to the em console http://localhost:port/em and then expand Farm –> SOA –> soa-infra –> default to look for the application we deployed : AccountStatus [1.01] and click Test Service.
16. Now add the following account number as shown below. The following account number(512300001000) is of John Morrison, according to the data we populated into the database in our first tutorial.
18. Now, let`s create another request with another account number: (612600001000). The following account number(612600001000) is of Mark Simpsons. According to the data we populated into the database in our first tutorial.
So We got successful responses as expected to both our requests.
This ends our three part SOA development Tutorial using a DB adapter. You can download the complete source code from here.