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 Admin Console. If the deployed application or module has a web service endpoint, it is detected automatically during deployment. Once the application or 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 or asadmin deploydir 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 6, Developing Web Services, in Sun GlassFish Enterprise Server 2.1 Developer’s Guide.