Validating that CMP entity beans can use optimistic locking
To use WebSphere Commerce optimistic locking, CMP 1.x EJB entity
beans must extend from the ECEntityBean class. If the EJB entity bean class
defines an ejbLoad
method, that method must call super.ejbLoad
.
If it defines an ejbStore
method, that method must call super.ejbStore
.
Use the WebSphere Commerce optimistic locking validation plug-in for IBM Rational
Application Developer to check that the ejbLoad and ejbStore methods of entity
beans extend from ECEntityBean or ECAbstractEntityBean:
Procedure
- Right-click the EJB Project that you want to validate.
- Select Validate WC optimistic locking.
- When the validation is complete, if any errors were found, click on the error message to see the detailed error report. A report of the errors found displays. If you need to remember the validation results, you can select the results, right-click and select Copy and paste it into a text editor before clicking Close.
- Edit the EJB entity bean class definitions to fix any errors.
- Run the plug-in again to make sure all reported errors have been fixed.