- 4.rar
- In the Plan field, select jms-resources.xml downloaded above.
- Click Install to complete creating JMS resources.
- In the Archive field, select helloworld-mdb-ejb-1.0-SNAPSHOT.jar downloaded above.
- Click Install to install the ejb application.
- In the Archive field, select helloworld-mdb-web-1.0-SNAPSHOT.war downloaded above.
- Click Install to install the web application.
- Access http://localhost:8080/helloworld-mdb-web/
Access an SCA service from a Filter*Note: explain why this is useful from user's prespective. Would users do this? The sample web application helloworld-filter has a filter HelloworldFilter with @Reference, @Property, @Context and @ComponentName annotations. The references are wired in web.composite. The annotated fields are injected at runtime. Follow the steps below to run the sample application. - Download helloworld-filter-1.0-SNAPSHOT.war from http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/plugins/helloworld-filter/1.0-SNAPSHOT/
- Access http://localhost:8080/console and navigate to "Deploy New" portlet.
- In the Archive field, select helloworld-filter-1.0-SNAPSHOT.war downloaded above.
- Click Install to install the web application.
- Access http://localhost:8080/helloworld-filter/
Access an SCA service from an Event Listener*Note: explain why users would od this?* The sample web application helloworld-listener has a ServletContextListener, a ServletContextAttributeListener, a ServletRequestListener, a ServletRequestAttributeListener, an HttpSessionListener, and an HttpSessionAttributeListener with @Reference, @Property, @Context and @ComponentName annotations. The references are wired in web.composite. The annotated fields are injected at runtime. Follow the steps below to run the sample application. - Download helloworld-listener-1.0-SNAPSHOT.war from http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/plugins/helloworld-listener/1.0-SNAPSHOT/
- Access http://localhost:8080/console and navigate to "Deploy New" portlet.
- In the Archive field, select helloworld-listener-1.0-SNAPSHOT.war downloaded above.
- Click Install to install the web application.
- Access http://localhost:8080/helloworld-listener/
Access an SCA service from a JSF managed beanThe sample JSF application helloworld-jsf has a controller class HelloWorldController with @Reference, @Property, @Context and @ComponentName annotations. The references are wired in web.composite. The annotated fields are injected at runtime. Follow the steps below to run the sample application. - Download helloworld-jsf-1.0-SNAPSHOT.war from http://people.apache.org/repo/m2-snapshot-repository/org/apache/geronimo/plugins/helloworld-jsf/1.0-SNAPSHOT/
- Access http://localhost:8080/console and navigate to "Deploy New" portlet.
- In the Archive field, select helloworld-jsf-1.0-SNAPSHOT.war downloaded above.
- Click Install to install the web application.
- Access http://localhost:8080/helloworld-jsf/
A sample that demonstrates a mix of the above features – IN PROGRESSThis sample demonstrates the following features: - An SCA reference in a JSP is wired to an (external) webservice using binding.ws
- An SCA reference in a servlet is injected with proxy to a service provided by a regular SCA component which is within the web application.
- References in the regular SCA component are wired to other components in the SCA domain and to external webservice using binding.ws
- SCA references injected into a session bean.
|