how to connect data base with EJB entity bean
how to configur开发者_如何学Pythone EJB with mysql. where will put username,password , driver class etc...
i want access one table using EJB entity bean , it is installed in my local computer. how it is possble..
thanks and regards.....
I'll suggest the following:
- Use JPA to manage your database 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 database
Hope that helps to kickstart.
Sorry typing on phone so can't explain in detail.
精彩评论