This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes About ejbstore methob in CMP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "About ejbstore methob in CMP" Watch "About ejbstore methob in CMP" New topic
Author

About ejbstore methob in CMP

rohit nabh
Greenhorn

Joined: Jan 13, 2004
Posts: 8
In case of CMP in ejb's we have ejbstore method that is called by container only.
I want to optimize ejbstore method .
can i do this in CMP.
regards
Rohit
David Harkness
Ranch Hand

Joined: Aug 07, 2003
Posts: 1646
Originally posted by rohit nabh:
In case of CMP in ejb's we have ejbstore method that is called by container only.
I want to optimize ejbstore method .
can i do this in CMP.

No, thus the CM in CMP. WebLogic, for example, already optimizes database updates for you. It will always call ejbStore, however, so don't use this to set a modified date attribute on your bean else it will be updated whenever it is involved in a transaction, whether or not you actually modified it.
 
Don't get me started about those stupid light bulbs.
 
subject: About ejbstore methob in CMP
 
Similar Threads
Database synchronization with Entity Bean
Does ejbStore get called after ejbCreate in CMP
ejbLoad and ejbStore
BMP entity bean - create
How to know if any of the CMP fileds are modified ?