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

< Previous | Next >


Create an access bean for the new table


Procedure

  1. Select File > New > Access Bean.

  2. Select Copy helper and click Next.

  3. Select the ExtendedCatalogDescription bean and click Next.

  4. From the Constructor Method list, select findByPrimaryKey(com.mycompany.catalog.objects.ExtendedCatalogDescriptionKey) and click Finish.

  5. In the EJB Deployment Descriptor Editor, in the Overview tab, scroll down to the JNDI - CMP Connection Factory Binding section. In the JNDI name field, type the value that matches the database type:

    • jdbc/WebSphere Commerce DB2 DataSource demo

    • jdbc/WebSphere Commerce iSeries DataSource demo

    • jdbc/WebSphere Commerce Oracle DataSource demo

    The following screen capture is an example using a DB2 database:

  6. Save the changes

< Previous | Next >


+

Search Tips   |   Advanced Search