Class HotelInitEJB

  • All Implemented Interfaces:
    HotelInitRemote

    public class HotelInitEJB
    extends Object
    implements HotelInitRemote
    The following EJB provides an example of an EJB using BEAN-managed transactions.
    • Field Detail

      • logger

        private static final org.slf4j.Logger logger
      • emf

        private EntityManagerFactory emf
        We will still get a resource from the container -- except in this case we will get an EMF rather than an EntityManager. Note the different @PersistenceUnit annotation as well.
      • tx

        private UserTransaction tx
        We get a UTx injected to control our overall JTA transaction.
    • Constructor Detail

      • HotelInitEJB

        public HotelInitEJB()