Develop > WebSphere Commerce development environment > WebSphere Commerce tools and plug-ins > Migrate EJB projects to use optimistic locking


Validate 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

  1. Right-click the EJB Project that to validate.

  2. Select Validate WC optimistic locking.

  3. 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 remember the validation results, you can select the results, right-click and select Copy and paste it into a text editor before clicking Close.

  4. Edit the EJB entity bean class definitions to fix any errors.

  5. Run the plug-in again to make sure all reported errors have been fixed.


Related tasks

Migrate EJB projects to use optimistic locking

Create new entity beans


+

Search Tips   |   Advanced Search