View Javadoc
1   package org.myorg.basicejb.ejb;
2   
3   import javax.annotation.PostConstruct;
4   import javax.annotation.PreDestroy;
5   import javax.ejb.Stateless;
6   
7   import org.slf4j.Logger;
8   import org.slf4j.LoggerFactory;
9   
10  @Stateless
11  public class ReservationEJB implements ReservationLocal, ReservationRemote {
12      private static Logger logger = LoggerFactory.getLogger(ReservationEJB.class);
13  
14      @PostConstruct
15      public void init() {
16          logger.debug("*** ReservationEJB.init() ***");
17      }
18      
19      @PreDestroy
20      public void destroy() {
21          logger.debug("*** ReservationEJB.destroy() ***");
22      }
23      
24      @Override
25      public void ping() {
26          logger.debug("ping called");
27      }
28  }