How to configure ejb with mysql database? I want to access mysql database table using EJB entity beans
Asked
Active
Viewed 1,522 times
0
-
2Your question is much too vague. Which version of entity beans are you using? 1.x, 2.x, 3.x? On which application server? Isn't it explained in the book or tutorial you're using to develop your entity beans? – JB Nizet Oct 27 '11 at 06:50
1 Answers
1
- Use JPA to manage your databade layer. You can use Eclipselink or hibernate to implement JPA.
- Create connection pool
- Inject EntityManager in Session bean
- From here you are ready to access databade

Rupok
- 2,062
- 16
- 16