Java Reference
In-Depth Information
Note
If you are planning to expose your EJB to local clients only (for example, to a servlet),
you can leave out the remote interface definition and simply annotate your bean with
@Stateless . The application server will create a no-interface view of your session
bean, which can safely be injected into your local clients such as servlets or other EJBs.
Be mindful that this also changes the semantics of the methods parameters and return val-
ues. For remote views, they will be serialized and passed by value.
Search WWH ::




Custom Search