View Javadoc
1   package ejava.examples.jndidemo.ejb;
2   
3   import javax.annotation.Resource;
4   import javax.ejb.SessionContext;
5   
6   /**
7      This EJB is associated with an example to have the deployment leverage the
8      XML deployment descriptors as much as possible.
9   */
10  
11  //@Stateless(name="Hospital") declared by ejb-jar.xml entry
12  public class HospitalEJB 
13      extends SchedulerBase implements HospitalLocal, HospitalRemote {
14      public String getName() { return "HospitalEJB"; }
15  
16      @Resource 
17      public void setSessionContext(SessionContext ctx) { this.ctx = ctx; }
18  }