开发者

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:

  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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜