This sample employs the Tuscany runtime in collaboration with the RDB DAS to demonstrate a simple read of a customer record from a relational database in the context of a web application. The user provides a customer ID and the application responds with the corresponding customer record
Submitting an integer from 1 to 3 will result in the display of the corresponding employee record
main +---java ¦ ¦ sca.module ¦ ¦ ¦ +---org ¦ +---apache ¦ +---tuscany ¦ +---samples ¦ +---customers ¦ CustomerClient.java ¦ CustomerServiceComponent.java ¦ CustomerServiceComponentImpl.java ¦ +---webapp ¦ Customer.jsp ¦ +---customerdb ¦ ¦ ¦ +---WEB-INF   web.xml |
sca.module | Defines the SCA module and component. Defines for the CustomerServiceComponent. |
CustomerClient.java | Wraps the get customer service to provide a clean "getCustomer()" API. |
CustomerServiceComponent.java | Defines the interface of the service. |
Customer.jsp | Handles Web form input. Instantiates a CustomerClient instance and calls getCustomer() |
customerdb | The canned Derby database with Customer records |
web.xml | Standard J2EE web application web.xml |