Customizing WebSphere Commerce Accelerator properties files

  1. Open the WebSphere Commerce development environment (Start > Programs > IBM WebSphere Commerce development environment) and switch to the

    J2EE Perspective Project Navigator view

    Express Project Navigator view.

  2. Navigate to the WebSphereCommerceServerExtensionsLogic project.

  3. Navigate to the src folder.

  4. Right-click on the src folder, and select New, and then Package.

  5. In the Name Field on the New Java Package dialog, enter a unique name. For the purposes of this scenario, enter com.myCompany.component.properties, where myCompany represents some custom directory name, and component represents the tool component to which the properties file corresponds. Packages created by IBM, and included in WebSphere Commerce follow a naming convention which begins, "com.ibm..."

  6. Click Finish to create the package.

  7. Right-click on the com.myCompany.component.properties folder, and select New, and then Other. In the New dialog, click Simple, File, and then Next.

  8. In the File name field, enter a unique name. For the purposes of this scenario, enter componentRB_locale.properties, where component represents the tool component to which the file corresponds, and locale represents the locale from which your business users will access the WebSphere Commerce Accelerator.

  9. Click Finish to create the file and open it in an editor.

  10. Update the file as necessary.

  11. Update the resources.xml file, as documented below, to include the following update:
    <resourceBundle name="campaignsRB">
       <bundle>com.ibm.commerce.tools.campaigns.properties.CampaignsRB"</bundle>
       <bundle>com.myCompany.component.properties.componentRB</bundle>
    </resourceBundle>
    

Related concepts

Related tasks