开发者

how to connect data base with EJB entity bean

开发者 https://www.devze.com 2023-02-06 00:14 出处:网络
how to configur开发者_如何学Pythone EJB with mysql. where will put username,password , driver class etc...

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:

  1. Use JPA to manage your database 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 database

Hope that helps to kickstart.

Sorry typing on phone so can't explain in detail.

0

精彩评论

暂无评论...
验证码 换一张
取 消