3.5.7 Deploying definitions to the HCSC server
(1) Creating HCSCTE projects
Before deploying definitions, you must create HCSCTE projects.
- Note
- An HCSCTE project is required for each program. When you develop multiple programs, you must use a separate workspace for the HCSCTE project of each program. If you create multiple HCSCTE projects in the same workspace, the programs will not operate correctly.
The following shows the procedure for creating an HCSCTE project:
- From the menu, select File, New, and then Project.
The New Project dialog box appears.
- Select HCSCTE Project, and then click the Next button.
The HCSCTE Project dialog box appears, displaying the page for creating a new HCSCTE project.
![[Figure]](figure/zs996500.gif)
- Specify the following items, and then click the Next button:
- Project name
- Specify any name. In this example, specify HCSCTE.
- Use default location
- Select the Use default location check box.
The HCSCTE Project dialog box appears, displaying the page for setting the HCSCTE repository.
![[Figure]](figure/zs996600.gif)
- Specify the following items, and then click the Finish button:
- Repository directory
- Specify the directory in which to store repository information. In this example, specify C:\work\HelloServiceAdapter\repository. Note the following points when you specify the repository directory:
- - Do not specify the same path for the repository directory path and project path.
- - Use an absolute path to specify the path.
- - The specified absolute path is normalized, and then the length is verified with the normalized path.
- Login user name
- Specify the user name that will be used for logging in to the repository. The user name can contain 1 to 16 alphanumeric characters.
If a dialog box asking you whether to open the associated perspective appears, click the Yes button.
An HCSCTE project is created, and the perspective for the project opens.
![[Figure]](figure/zs996700.gif)
(2) Exporting the system configuration definition from the operation environment
To import the system configuration definition from the execution environment to the development environment, export the repository information of the operation environment to a file compressed in ZIP format.
- From the Eclipse menu, select Window, Open Perspective, and then Other.
The Open Perspective dialog box opens.
![[Figure]](figure/zs990060.gif)
- Select HCSCTE, and then click the OK button.
The HCSCTE perspective opens.
- From the Eclipse menu, select Run, External Tools, and then External Tools Configurations.
The External Tools Configurations dialog box appears.
- In the left pane, right-click Program, and then select New.
The Create, manage, and run configurations page appears.
![[Figure]](figure/zs990730.gif)
Select the Main tab, and then enter the following information:
Item name | Value to be set |
---|
Name | Specify any name. In this example, enter Get System Configuration Definition. |
Location | Enter the following file:${env_var:COSMINEXUS_HOME}\csc\bin\cscrepctl.bat Alternatively, click the Browse File System button, and select the following file: service-platform-installation-directory\csc\bin\cscrepctl.bat |
Working Directory | Specify a directory to which the file specified with the argument entered next will be output. |
Arguments | -export any-output-file-name.zip In this example, enter systemdef.zip. |
- Click the Run button.
The command is registered and executed. As a result, the repository information of the operation environment is exported as a ZIP file to the specified output-destination directory.
(3) Importing the system configuration definition into the development environment
From the export file that contains the operation environment's repository information, import only the system configuration definition to the development environment.
- From the Eclipse menu, select HCSC-Definer, Repository management, and then Import repository.
The dialog box confirming that the repository will be overwritten appears.
- Click the Yes button.
The Import Repository dialog box for selecting the ZIP file that contains repository information appears.
Specify the ZIP file named systemdef.zip that was exported from the operation environment.
- Click the Open button.
The Import Repository dialog box for selecting the definition information to be imported appears.
![[Figure]](figure/zs030600.gif)
- Select the System Configurations check box, and then click the OK button.
When the system configuration definition of the execution environment is imported, a dialog box reporting that processing was normally completed appears.
- Click the OK button.
(4) Importing a sample program
Import the repository information for the sample program.
- Select HCSC-Definer, Repository management, and then Import repository.
The dialog box confirming that the repository will be overwritten appears.
- Click the Yes button.
The Import Repository dialog box for selecting the ZIP file that contains repository information appears. Select the following ZIP file:
service-platform-installation-directory\CSCTE\Samples\HelloServiceAdapter\Repository\HelloServiceAdapter.zip
The repository information of other sample programs is stored in the following files:
- HelloBusinessProcess sample program:
- service-platform-installation-directory\CSCTE\Samples\HelloBusinessProcess\Repository\HelloBusinessProcess.zip
- HelloProductArrangement sample program:
- service-platform-installation-directory\CSCTE\Samples\ProductStock\Repository\ProductStock.zip
- Click the Open button.
The Import Repository dialog box for selecting the definition information to be imported appears. Select only the Services Definitions check box, and then click the OK button.
(5) Deploying HCSC components
Deploy and start HCSC components.
- In the tree view, right-click Service Definition List, and then select Deploy all services to server and start.
![[Figure]](figure/zs992480.gif)
If you are not logged in, the account authentication window appears. Perform step 2.
- Enter admin in both User ID and Password, and then click the OK button.
A message indicating that processing is in progress appears, and then a message reporting the results appears.
- Click the OK button.
You have now completed deployment.
(6) Confirming HelloServiceAdapter and starting the standard reception
Confirm that HelloServiceAdapter is running, and then start the standard reception.
- From the menu, select Window, Show View, and then Other.
The Show View dialog box appears.
- In the Show View dialog box, under HCSC-Manager, select HCSC-Manager View, and then click the OK button.
The HCSC-Manager view appears.
- In the HCSC-Manager view, right-click HCSC-Manager(Logout), and then select Login.
The login window appears.
- Enter admin in both Administrator ID and Password, and then click the OK button.
Login to HCSC - Manager finishes.
- Confirm that HelloServiceAdapter is running.
In the HCSC-Manager view, expand HCSC-Manager(Login), HCSC-Domain, MyUnit(LBCluster), and then MyCSC[localhost:28099]. Then, double-click HelloServiceAdapter to display the Information page. Click the Operations tab to open the Operations page. Confirm that Status is active.
For the other sample programs, confirm that the following services are running:
- HelloBusinessProcess sample program:
- Confirm that HelloServiceAdapter and HelloBusinessProcess are running.
- HelloProductArrangement sample program:
- Confirm that ProductStock, DeliveryReceipt, and InventoryManagement are running.
- Confirm that the standard reception has started.
In the HCSC-Manager view, expand HCSC-Manager(Login), HCSC-Domain, and then MyUnit(LBCluster). Then, double-click MyCSC[localhost:28099] to display the Operations page for MyCSC. Click the Start button to change the status of Standard reception to active. When the status of Standard reception becomes active, the Start button is disabled.
![[Figure]](figure/zs990720.gif)
- In the HCSC-Manager view, right-click HCSC-Manager(Login), and then select Logout.
A message confirming that you will log out from HCSC-Manager appears.
- Click the OK button.
Logout from HCSC - Manager finishes, and HCSC-Manager(Logout) is displayed.
You are now ready to run sample programs.