Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
You have an EJB, servlet, or other container-managed resource that you want to act as the client for your web service.
Use the @WebServiceRef annotation to inject a reference to the service you want to invoke. Note that this does not have to be only a servlet or EJB. You might also want to invoke a web service from other container-managed resources, such as a Filter, a SessionContextListener, a ServletContextListener, or a TagHandler depending on your use case.