Tutorials > Content management > Create a content-managed resource > Creating the new resource

< Previous | Next >


Generate deployment code and regenerating the access bean

The code generation utility analyzes the beans to ensure that the EJB specifications of Sun Microsystems are met and it ensures that rules specific to the EJB server are followed. In addition, for each selected enterprise bean, the code-generation tool generates the home and EJBObject (remote) implementations and implementation classes for the home and remote interfaces, as well as the JDBC persister and finder classes for CMP beans. It also generates the Java ORB, stubs, and tie classes required for RMI access over IIOP, as well as stubs for the home and remote interfaces.


Procedure

  1. In the Enterprise Explorer view, right-click WebSphereCommerceServerExtensionsData and select Java EE > Prepare for Deployment.

  2. After the deploy code is generated, Rational Application Developer rebuilds the workspace. When the workspace building is completed, ensure that you have no errors in the Problems view.

    To regenerate the ExtendedCatalogDescriptionAccessBean:

    1. In the Enterprise Explorer view, navigate to WebSphereCommerceServerExtensionsData > Deployment Descriptor : WebSphereCommerceServerExtensionsData

    2. Right-click Deployment Descriptor : WebSphereCommerceServerExtensionsData and select Java EE > Access Beans > Regenerate Access Beans.

    3. On the Select access beans to regenerate window, click Deselect All.

    4. Select only ExtendedCatalogDescriptionAccessBean.

    5. Click Finish.

    6. Save all files.

  3. Update the schema name for the JDBCPersistence class of the ExtendedCatalogDescriptionBean.

    1. From the menu bar, navigate to Navigate > Open Type.

    2. In the Open Type window, type EJSJDBCPersisterCMPExtendedCatalogDescriptionBean*.java, and click OK to select the class.

    3. Update the string variables _createString, _removeString, _storeString, and _loadString by changing schema_name.EXTCATALOGDSC to EXTCATALOGDSC, where schema_name is the name of the schema.

    4. Save all files.

< Previous | Next >


+

Search Tips   |   Advanced Search