uCosminexus Application Server, Application Development Guide

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

1.5.2 Procedure for developing J2EE applications

This subsection describes the procedure for developing J2EE applications. The following figure shows the flow of developing a J2EE application, corresponding reference sections, and the tools required for each operation. Note that an embedded database is used for testing the J2EE applications described in this manual, so the procedure also describes the building of the embedded database. Note also that if installation and setup of the development and debug environments is are already finished, you can skip step 1 below.

Figure 1-11 Flow of J2EE application development using an embedded database and EJBs

[Figure]

Each operation is described below.

  1. Installation and setting up the development environments
    To prepare the environments required for developing J2EE applications, you execute the following operations. Note that you use the Development Environment Instant Setup tool and the Eclipse setup tool to set up the debug environment.
    • Set up the debug environment
    • Install and set up Eclipse
    You must first execute the above installation and setup, and then set up the development environment. For details on the installation and setup of the development environment, see 2. Installation and Setup.
  2. Creating database tables
    Create the embedded database tables to be used in the debug environment. You use HiRDB SQL Executer to create the embedded database tables. For details on the creating embedded database tables, see 3. Creating Database Tables for the Debug Environment.
  3. Creating projects and DDs
    Create the required Eclipse projects for the J2EE application. You use WTP to create the dynamic Web project, EJB project, utility project, and enterprise application project. The DDs are automatically generated when you create the projects. For details on creating each project and DD, see 4. Developing J2EE Applications Using Eclipse.
  4. Editing the definition information
    Edit the definition information according to the contents of the J2EE application to be created. The definition information to be edited includes the definition information of the DD and the Cosminexus Application Server-specific information. For details on editing the definition information, see 5. Editing Definition Information.
  5. Testing the J2EE application
    Use the Eclipse functionality to deploy, test, and debug J2EE applications in the development environment. For details on testing J2EE applications, see 6. Testing J2EE Applications. Also, for details on application profiling using Java VisualVM, see Appendix K. Profiling Applications with JavaVisualVM.
  6. Deploying to the execution environment
    You use Eclipse to build the developed J2EE application and create an EAR file. You then use the server management commands or the management portal to deploy the created EAR file to the execution environment. For details on deploying J2EE applications to an execution environment, see 7. Deploying J2EE Applications to an Execution Environment.