uCosminexus Application Server, System Setup and Operation Guide
This section describes the operation procedure and configuration of the J2EE server to execute sample programs with server management commands. This procedure is required to execute all the sample programs described from Appendix I.2 onwards.
Enter the cjsetup command in the command prompt to set up the J2EE server. The following execution example shows the setup procedure. In the execution example, the J2EE server called "MyServer" is set up.
C:\> cd Program Files\Hitachi\Cosminexus\CC\server\bin C:\Program Files\Hitachi\Cosminexus\CC\server\bin>cjsetup MyServer KDJE40001-I The setup for the J2EE server has finished successfully. Server name = MyServer C:\Program Files\Hitachi\Cosminexus\CC\server\bin> |
Specify the settings to access the application. Use any of the following methods to access the application:
This section describes about the usage of the in-process HTTP server functionality of the user-friendly J2EE server.
Define the property key in the user definition file (usrconf.properties) to enable the in-process HTTP server functionality.
Start the J2EE server, already set up with the cjstartsv command.
C:\> cd Program Files\Hitachi\Cosminexus\CC\server\bin C:\Program Files\Hitachi\Cosminexus\CC\server\bin>cjstartsv MyServer <The start log is displayed> : KDJE30028-I The J2EE server has started. Server name = MyServer |
Set the resource adapter by the following procedure:
Use the batch file (deployApp.bat) provided in the sample to execute the application. This batch file imports, sets up and starts the application on the J2EE server.
The process executed by this batch file is as follows:
Use the batch file (unDeployApp.bat) provided in the sample to execute the application. This batch file stops, and deletes the application from the J2EE server.
The process executed by this batch file is as follows:
Stop the J2EE server with the cjstopsv command.
> cd Program Files\Hitachi\Cosminexus\CC\server\bin C:\Program Files\Hitachi\Cosminexus\CC\server\bin>cjstopsv MyServer C:\Program Files\Hitachi\Cosminexus\CC\server\bin> |
C:\> cd Program Files\Hitachi\Cosminexus\CC\server\bin C:\Program Files\Hitachi\Cosminexus\CC\server\bin>cjstartsv MyServer <The boot log is displayed> : KDJE30028-I The J2EE server has started. Server name = MyServer : <The end log is displayed> C:\Program Files\Hitachi\Cosminexus\CC\server\bin> |
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.