1 package ejava.examples.ejbwar.customer;
2
3 import javax.enterprise.inject.Produces;
4 import javax.persistence.EntityManager;
5 import javax.persistence.PersistenceContext;
6
7 import ejava.examples.ejbwar.customer.Customers;
8
9 /**
10 * This class defines producers for resources required within the customer
11 * application.
12 */
13 public class CustomerResources {
14 @PersistenceContext(unitName="webejb-customer") @Customers
15 @Produces
16 public EntityManager customerEM;
17 }