Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Guide

- Previous: Securing a Web Service
- Next: Configuring the Application Server for Message Security

## Securing the Sample Application

The Application Server ships with a sample application named `xms`. The `xms` application features a simple web service that is implemented by both a J2EE EJB endpoint and a Java Servlet endpoint. Both endpoints share the same service endpoint interface. The service endpoint interface defines a single operation, `sayHello`, which takes a string argument, and returns a `String` composed by pre-pending `Hello` to the invocation argument.

The `xms` sample application is provided to demonstrate the use of the Application Server’s WS-Security functionality to secure an existing web services application. The instructions which accompany the sample describe how to enable the WS-Security functionality of the Application Server such that it is used to secure the `xms` application. The sample also demonstrates the binding of WS-Security functionality directly to the application (as described in Configuring Application-Specific Web Services Security application.

The `xms` sample application is installed in the directory: install-dir`/samples/webservices/security/ejb/apps/xms/`.

For information on compiling, packaging, and running the `xms` sample application, refer to the Securing Applications chapter of the Developers’ Guide.

- Previous: Securing a Web Service
- Next: Configuring the Application Server for Message Security

- © 2010, Oracle Corporation and/or its affiliates