Java Reference
In-Depth Information
Clicking on the Source tab of the web services visual designer, we can see how our
new web service is implemented.
As we can see, creating a web service from an existing session bean results in a new
stateless session bean being created. This new session bean acts as a client for our
existing EJB (as evidenced by the ejbRef instance variable in our example, which is
annotated with the @EJB annotation).
EJBs can also be exposed as web services from a web application project; in which
case the generated web service will be a Plain Old Java Object (POJO) annotated
with the @WebService , @WebMethod , and @WebParam annotations, with pass-through
methods invoking the corresponding methods on the EJB being exposed as a
web service.
Search WWH ::

Custom Search