L. Sample programs provided by Application Server
Application Server provides the following sample programs:
-
Sample program of Enterprise Bean (EJB2.0)
-
Sample program of Enterprise Bean (Annotations)
-
Sample program of Enterprise Bean (Timer Service)
-
Sample program of Java Beans resource
-
Sample program of User log functionality
-
Sample program of Web application
-
Sample program of TP1 inbound linking functionality
-
Sample program of JSF
-
Sample of Bean Validation and CDI integration application
- Important note
-
To prioritize the clarity of the provided sample programs, error handling and processes to avoid the issue of security vulnerability are omitted in the many of the introduced codes. Therefore, when a malicious third party attacks a sample program, it might lead to a serious problem. You do not use sample programs in the production environment. If you use sample programs in the production environment, they may cause errors.
This section gives an overview and describes the execution procedure and execution example of each sample. Execution procedure and execution example of sample programs are explained with the server management commands.
- Important note
-
When using the sample program in UNIX environment, replace the text as follows.
-
Replace the directory (Cosminexus-installation-directory\) for Windows with the directory /opt/Cosminexus/for UNIX.
-
Batch file used in the Windows environment serves as the shell script in the UNIX environment. Remove the extension.
For example, for the Windows environment: testClient.bat; for the UNIX environment: testClient
When you run sample programs provided by the Application Server, we recommend that you use the sample program by copying to another directory having the write permission.
-
- Organization of this section