Java Reference
In-Depth Information
As we can see, the generated session bean does not implement a local or remote
business interface. It 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, and therefore it can take advantage of EJB transaction
management, aspect oriented programming, and other EJB features.
Just like with regular web services, a web service implemented as a session bean can
be designed using the NetBeans visual web service designer. In our example, after
removing the automatically generated operation and adding two operations, our
web service visual designer looks like this:
 
Search WWH ::




Custom Search