Tutorials > Management Center > Create the Project BOD service module

< Previous | Next >


Implement the business logic layer

The business logic layer contains the commands used in this tutorial.

To save time, you are importing these commands directly from the provided tutorial code.

The design pattern for Get services is the basic design pattern used for retrieving and displaying information from Web services. This pattern uses the following requests and responses:

The Get services use the InsertMoreData capability of the Get design pattern to include Catalog Entry information in the Recipe services. For more information, see Modify a Get service to use business logic to insert more data for a specific access profile.

Complete the following steps to import the business logic layer commands.


Procedure

  1. Import the business logic layer Java files into the Project-Server project:

    1. In the Enterprise Explorer view, navigate to Project-Server/ejbModule, and right-click the com.mycompany.commerce.project.facade.server.commands package.

    2. Click Import. Expand General and select File System.

    3. Click Next.

    4. Browse to the temporary location where you unzipped RecipeServices.zip. Browse to the com.mycompany.commerce.project.facade.server.commands folder.

    5. Select all files in the folder.

    6. Click Finish.

  2. Register the new commands in the CMDREG table:

    1. Stop the WebSphere Commerce test server.

    2. In a command prompt, navigate to WCDE_INSTALL \bin.

    3. Run the following command:

      massload ..\workspace\WC\xml\config\com.mycompany.commerce.project\Project-cmdreg.xml
      

      massload ..\workspace\WC\xml\config\com.mycompany.commerce.project\Project-cmdreg.xml development_db db_user db_password db_schema
      

      massload ..\workspace\WC\xml\config\com.mycompany.commerce.project\Project-cmdreg.xml development_db db_user db_password
      

      Massload is a utility provided by WebSphere Commerce to load an XML input file into a target database. For more information, see: massload utility (Development environment)

< Previous | Next >


+

Search Tips   |   Advanced Search