Session Beans
(for OLD EJB Session Bean 2.* information)
Characteristics:
|
Session Bean Example
//STEP 1 THE INTERFACE CLASS - publishes the business classes.
//STEP 2 THE BEAN CLASS - creates the buisness classes. This bean will be a stateless session bean, thus the class will be annotated with @Stateless annotation.
The interface must be a remote interface to be available for remote clients. This is done by using the @Remote annotation. package helloword; |
Passivation and Activation
|