This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes ejbStore problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejbStore problem" Watch "ejbStore problem" New topic
Author

ejbStore problem

Jon Ho
Greenhorn

Joined: Sep 03, 2001
Posts: 1
Hi all.
In entity EJBs, I have SQL(update) statements to write to persistent database in ejbStore. My problem is that my container, Weblogic's, calls ejbLoad and ejbStore continuously during the loading of any jsp page. Each jsp simply calls a "select" function from one of the entity ejb. However, Weblogic's performance is degraded tremendously by these database calls. Is it wise to remove the SQL-updates in ejbStore or add a flag in ejbStore to control whether to execute those updates at all?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17148
    
  27

It's OK to put logic into a bean that tracks when it has been modified and use that to determine whether to do the SQL update in ejbStore. In fact, WebLogic has an extension for CMP beans where the container can call a bean's isModified() method for exactly that purpose.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejbStore problem
 
It's not a secret anymore!