Implementing 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.
About this task
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 request provides the search criteria that is used to retrieve the business objects along with paging options for paged requests. The search criteria is represented as a XPath expression.
- The Show response includes the business objects that match the search criteria.
Note: 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 Modifying 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
- Import the business logic layer Java files into your Project-Server
project:
- In the Enterprise Explorer view, expand Project-Server/ejbModule.
- Right-click com.mycompany.commerce.project.facade.server.commands; click Import.
- Expand General; select File System, then click Next.
- Browse to the temporary location where you extracted RecipeServices.zip.
- Browse to the com.mycompany.commerce.project.facade.server.commands folder; select the folder, then click Ok.
- Select all files in the folder; click Finish.
- Click Yes to All to overwrite any existing files.
- Register the new commands in the CMDREG table: