×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / EJB:we only build some session beans instead of entity beans even though we need access db,---such as using ejbCreate(String ID) to get a record from a table.Is there any problem if we don't build any entity bean?
    • Nothing wrong with you. Entity beans are easy to use for developers. But their performance is a problem.
    • If you use Container-managed beans, the ejb compiler will generate all the JDBC code for DB access....
      However, these compiler generated code is not always optimized for your requirements. Too much overhead. Seldom good performance.
      • yes,Ihave to use CMB because BMB for me is too hard