Java Reference
In-Depth Information
Clicking on the
Source
tab reveals that our web service was implemented as a
stateless session bean.
Notice that the generated session bean does not implement neither a local nor
remote business interface. It simply is decorated with the
@WebService
annotation,
its methods are decorated with the
@WebMethod
annotation, and each parameter
is decorated with the
@WebParam
annotation. The only difference between the
generated code for this web service and the one for the previous example is that
the generated class is a stateless session bean, therefore it can take advantage of EJB
transaction management, aspect oriented programming, and other EJB features.