The Tuscany hello world web sample shows using the Tuscany SCA runtime in a Tomcat environment being accessed from a JSP page that implements the classic introductory hello world example.
The page should be updated with the greeting displayed below
the form.
src |
sca.module | Defines the SCA module and component. Defines for the HelloWorldServiceComponent component and the Java class that implements that component |
HelloWorldService.java | Defines the Java interface implemented by the component. |
HelloWorldImpl.java | Implements the SCA component. Uses the SCA service annotation tag on the class to show what SCA interface is being implemented. |
HelloWorldWeb.jsp | Handles Web form input.. Obtains the module context which was defined by the sca.module file. From the module context locates the HelloWorldServiceComponent and then calls the getGreetings method to invoke the component. and formats returned results. |
web.xml | Standard J2EE web application's web.xml |