206 Migrating Applications from WebLogic, JBoss and Tomcat to WebSphere V6
The method setUserId(String) is undefined for the type String
AccountValue.java
xPetstore-EJB/gen/src/xpetstore/domain/signon/ejb
line 51
This is because there is extra tag in the AccountEJB.java file that confuses
WRD:
/**
* @ejb.pk-field
. . .
*/
public abstract String getUserId( );
If you remember, we have already defined the primary key for our bean at the
class level tag, as shown below:
/**
* @ejb.bean
* name="Customer"
* type="CMP"
* view-type="local"
* primkey-field="userId"
* . . .
*/
Therefore, we can simply remove the @ejb.pk-field tag from the
AccountEJB.java file and rebuild the project. Now none of the files in the
package xpetstore.domain.signon.ejb have any errors.
23. ...