uCosminexus Application Server, System Setup and Operation Guide

[Contents][Glossary][Index][Back][Next]

Appendix M.10 Sample program of JSF

The sample program that uses JSF is stored in the following directory:

Cosminexus-installation-directory\CC\examples\jsf

Following is the overview and execution procedure of the sample:

Organization of this subsection
(1) Overview of the sample program of JSF
(2) Execution procedure of the sample program of JSF

(1) Overview of the sample program of JSF

This sample program provides the JSF application for executing the following operations:

JSF sample program uses JSF. To use JSF, you must set a class path in usrconf.cfg. For details on setting the class path, see 3.4 Setting the class path (Setting development environment) in the uCosminexus Application Server Common Container Functionality Guide.

The following figure shows the method of executing the sample program of JSF:

Figure M-48 Execution example of the sample program of JSF

[Figure]

The following figure shows the configuration of the sample program:

Figure M-49 Configuration of the sample program of JSF

[Figure]

(2) Execution procedure of the sample program of JSF

The following procedure describes the method for executing the sample program:

(a) Setting the J2EE server

See Appendix M.1(1) Setting the J2EE server.

(b) Customizing the J2EE server

See Appendix M.1(2) Customizing the J2EE server.

(c) Starting the J2EE server

See Appendix M.1(3) Starting the J2EE server.

(d) Compiling sample programs

Compile the sample programs with the batch file (compile.bat) provided in the sample. This batch file creates a WAR file (helloworld.war) and EAR file (helloworld.ear).

(e) Deploying the application

Use the batch file (deployApp.bat) provided in the sample to deploy the application. See Appendix M.1(5) Importing, setting and starting the application.

(f) Executing the application

Start the browser and specify the following string in the URL:

http://Machine-name: Port-number/helloworld/

If the in-process HTTP server is available, the following URL is specified by default:

http://localhost/helloworld/

(g) Undeploying the application

See Appendix M.1(6) Stopping and deleting the application.

(h) Stopping the J2EE server

See Appendix M.1(7) Stopping the J2EE server.