JAX-WS: Deployment Descriptor-free Programming
By Jack Vaughan
The open-source GlassFish J2EE 5 application server allows what may be described as a simplified object component architecture, certainly in comparison to some of its forbearers. Used in conjunction with JAX-WS it supports descriptor free programming, which is welcomed by developers looking for ease of services deployment. We talked recently with Sun’s Arun Gupta about GlassFish, JAX-WS, and how Web service creation can be streamlined. Gupta is a technology evangelist for Web Technologies and Standards at Sun Microsystems, Inc., as well as a charter blogger on TheServerSide Interoperability Blog.
Arun said he strongly believes in descriptor-free programming.
“In the past,” he said, “even experienced developers have found it challenging to write descriptors.” In new scenarios, the descriptors still exist and, if you like, you can bundle them with your application. But not having to write deployment descriptors and focus on your business logic gets you started quickly.
Arun recently posted a blog entry about deploying a service in GlassFish using JDK annotations. It is entitled JAX-WS: Deployment Descriptor-free Programming. A most impressive aspect of the design sample he uses for illustration is that, in his words, “it gives you the ability of going descriptor-free.”
As he puts it: “No deployment descriptors are required if you can live with the reasonable defaults defined by the JAX-WS specification.”
“Glassfish recognizes a class to be a Web service, and uses a default URL to be the end point,” he told us. In his example, that is: http://localhost:8080/Hello/HelloService?wsdl
Leave a Reply