This is the default behaviour for EJB. The specification states that ejbLoad() will be called before every transaction and ejbStore() after every transaction. Each Vendor has optimizations, which are proprietary for this scenario.
This site provides Java Tutorial, J2EE Tutorial, Spring Tutorial, Hibernate Tutorial, Struts Tutorial and Spring Tutorial. It has complete source code demonstration and Hello World excercise for Freshers and experienced IT Professionals.
Thursday, January 19, 2012
Java Interview Question and Java Beginner Tutorial - Part 5
I am developing a BMP Entity bean. I have noticed that whenever the create method is invoked, the ejbLoad() and the ejbStore() methods are also invoked. I feel that once my database insert is done, having to do a select and update SQL queries is major overhead. is this behavior typical of all EJB containers? Is there any way to suppress these invocations?
This is the default behaviour for EJB. The specification states that ejbLoad() will be called before every transaction and ejbStore() after every transaction. Each Vendor has optimizations, which are proprietary for this scenario.
This is the default behaviour for EJB. The specification states that ejbLoad() will be called before every transaction and ejbStore() after every transaction. Each Vendor has optimizations, which are proprietary for this scenario.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment