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?
-wendywendy(wind);
2001-3-13(#32783@0)
Nothing wrong with you. Entity beans are easy to use for developers. But their performance is a problem.
-jabber(jabber);
2001-3-13(#32801@0)
If you use Container-managed beans, the ejb compiler will generate all the JDBC code for DB access....
-jabber(jabber);
2001-3-13{129}(#32809@0)
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
-wendywendy(wind);
2001-3-13(#32920@0)