Install the Design Pattern Toolkit and the ComponentProjects design pattern
The Design Pattern Toolkit (DPTK) is an Eclipse-enabled template engine for generating applications based on customizable, model-driven architecture transformations. WebSphere Commerce uses the DPTK plug-in for creating WebSphere Commerce service modules from a simple XML file. By describing the service module in a specialized XML syntax, the service modules can be generated. This allows one to start directly with the service module implementation without having to spends hours with the setup and configuration of a service module.
To install the DPTK plug-in:
- Open your Internet browser and navigate to http://www.alphaworks.ibm.com/tech/dptk.
- Click the Download tab and download the com.ibm.dptk.updateSite.3_2_0_1.zip package.
- DPTK is packaged as an update site. The installation instructions are listed in the DPTK_install.doc file located inside the downloadable file.
Notes:
- The purpose of this pattern is to generate the required Java projects and J2EE modules required for building a service module.
- The pattern only generates the deployment files and Java files to create services
DPTK Licensing Restriction
DPTK is licensed under IBM International License Agreement for Early Release of Programs and has a 90-day Evaluation Period. When DPTK is used in conjunction with the patterns provided by WebSphere Commerce to create WebSphere Commerce service modules, the user is granted an "execution only" license for as long as this version of WebSphere Commerce product is supported. This restricted license entitles you to use DPTK to generate the WebSphere Commerce service modules using the patterns provided and deploy them in production. These patterns and generated modules will be fully supported as part of the WebSphere Commerce product as long as they are not modified in any way.
Importing the ComponentProjects design pattern
The ComponentsProject DPTK pattern is the pattern that WebSphere Commerce uses to generate code, template code, and XML to support creating a WebSphere Commerce service module. This pattern is not meant to be extended. Any additional steps on top of the pattern should be handled by a new pattern that would run after the ComponentsProjects pattern. Creating your own DPTK patterns is outside the scope of this documentation -- for information on creating new patterns, see the DPTK documentation. Prerequisites
Before performing this task, ensure you have performed the following tasks:
To import the ComponentProjects project into WebSphere Commerce Developer:
- Unzip one of the following two zip files to a temporary file location:
For Feature Pack 3.0.1 or later, use ComponentProjects.zip.
- For Feature Pack 2, use ComponentProjects.zip.
- Start WebSphere Commerce Developer.
- Switch to the J2EE perspective.
- Select File > Import.
- Select Existing Project into Workspace. Click Next.
- Click Browse and navigate to the temporary file location you specified in step 1. Select the ComponentProjects folder. Click OK.
- Click Finish.
- Next step: Create a WebSphere Commerce service module.
Related concepts
WebSphere Commerce services
WebSphere Commerce service moduleRelated tasks
Create a WebSphere Commerce service module