Web services are not supported unless the optional Metro (JSR 109) add-on component is downloaded from the Update Tool. Without the Metro component, a servlet or EJB module cannot be a web service endpoint, and the sun-web.xml and sun-ejb-jar.xml elements related to web services are ignored.
For information about the Update Tool, see the Sun GlassFish Enterprise Server v3 Prelude Installation Guide.
You deploy a web service endpoint to the Enterprise Server just as you would any servlet or stateless session bean (SLSB).
Web service management is fully supported in the Administration Console. If the deployed module has a web service endpoint, it is detected automatically during deployment. Once the module is deployed, click on the Web Service component. The table in the right frame lists deployed web service endpoints.
You can use the --registryjndiname option of the asadmin deploy command to publish the web service as part of deployment, but this is optional. See Tools for Deployment.
To deploy a JSR 181 annotated file, use the autodeployment feature. You can compile and deploy in one step, as in the following example:
javac -cp javaee.jar -d domain-dir/autodeploy MyWS.java
For more information about web services, see JSR 181 and Chapter 5, Developing Web Services, in Sun GlassFish Enterprise Server v3 Prelude Developer’s Guide.