Next, you must create a new ejbPostCreate method that has the same
input parameters as the new ejbCreate method.
Procedure
- Double-click the yourNewBeanBean class
to open it and view its source code.
- Create a new ejbPostCreate method with the same input parameters
that were used in the new ejbCreate method. To continue the user residence
example, you would add the following code to the class:
public void ejbPostCreate(int argUserId, String argHome, byte
Rooms)
throws javax.ejb.CreateException
{
}
- Save your changes.
- Proceed to adding access
control methods to the bean.