How do i connect to mysql data base with EJB entity bean?

1.5k views Asked by At

How to configure ejb with mysql database? I want to access mysql database table using EJB entity beans

1

There are 1 answers

0
Rupok On
  1. Use JPA to manage your databade layer. You can use Eclipselink or hibernate to implement JPA.
  2. Create connection pool
  3. Inject EntityManager in Session bean
  4. From here you are ready to access databade