Java Reference
In-Depth Information
Our example bean does not need to maintain a conversational state with its clients,
therefore we should make it a stateless session bean. Its only client will be executing
in a different JVM, therefore we need to create a remote interface, and we don't need
to create a local interface.
When creating a local interface, NetBeans requires us to specify a client library in
which the remote interface will be added. This is the reason we had to create a java
class library earlier. Our client library is selected by default.
After selecting all the appropriate options and clicking on Finish , our session bean
is created in the EJB module project and the remote interface is created in the client
library project.
The generated code for our session bean is simply an empty class with the @
Stateless annotation already added.
 
Search WWH ::




Custom Search