Home

  

Product

  

Buy

  

Support

 First Line 
 FAQs 
 Tutorials 
 Registered Users 
 User Guide 
 Knowledge Base 

News

  

Press

  

Downloads

  

Contact

  

Company

  

Partners

  

Resources

 
 

User Guide - Generating individual J2EE components

Index    Previous   <<>>  Next
  
15.1 Overview

15.2 Definition

15.3 Generation

  15.1  OverviewTo top of page

As well as allowing you to build complete J2EE and web applications, JCodeBox also allows you to define and generate individual J2EE components i.e. EJBs.

Currently the following components can be generated individually:

  • Stateless Session Bean/Facade 1.1
  • Stateless Session Bean/Facade 2.0
  • Stateful Session Bean/Facade 1.1
  • Stateful Session Bean/Facade 2.0
  • Message Driven Bean/Facade 2.0
  • BMP Entity Bean 1.1
  • BMP Entity Bean 2.0
  • CMP Entity Bean 1.1
  • CMP Entity Bean 2.0

Entity beans need to be based on an existing database table (so that JCodeBox can retrieve the primary key and field information).

  15.2  DefinitionTo top of page

To define one of the following:

  • Stateless Session Bean/Facade 1.1
  • Stateless Session Bean/Facade 2.0
  • Stateful Session Bean/Facade 1.1
  • Stateful Session Bean/Facade 2.0
  • Message Driven Bean/Facade 2.0
    • Open (click on) the Generate menu from the main JCodeBox menu
    • Select one of the menu options above
    • Complete the corresponding EJB definition dialog as described in chapter 9 - Enterprise Java Beans
    • Press OK. The generation details dialog will be displayed

To define one of the following:

  • BMP Entity Bean 1.1
  • BMP Entity Bean 2.0
  • CMP Entity Bean 1.1
  • CMP Entity Bean 2.0
    • In the main JCodeBox window, double click on the driver that contains the connection to be used
    • In the main JCodeBox window, double click on the connection that contains the database/schema to be used
    • In the main JCodeBox window, double click on the database/schema that contains the table to be used
    • In the main JCodeBox window, double click on the table node belonging to the database/schema selected in the previous step
    • In the main JCodeBox window, right mouse click on the table you would like to use
    • Select Generate from database object and then one of the menu options above from the popup menu
    • Or

    • Select the Database/Generate from database object and then one of the menu options above from the main JCodeBox menu. The select table wizard is displayed
    • Select the driver to use and press next
    • Select the connection to use and press next
    • Select the catalog/schema (database) to use and press next
    • Select the table to use and press finish
    • Complete the corresponding EJB definition dialog as described in chapter 9 - Enterprise Java Beans
    • Press OK. The generation details dialog will be displayed

  15.3  GenerationTo top of page

To generate an individual J2EE component (i.e. EJB) complete the following steps

  1. Enter the base package name in the base package text field (this will be pre-pended to the package name specified in the component)
  2. Enter the target (output) directory in the target directory text field. Optionally use the browse button to select an alternate directory if the supplied default is not acceptable.
  3. Select the target database (entity beans only)
  4. Press OK to generate your component
  5. Your component will be generated in the output directory specified in the target directory text field

Index    Previous   <<>>  Next

[an error occurred while processing this directive]