Newbean - Red Hat APPLICATION SERVER - JONAS Manual

Jonas
Hide thumbs Also See for APPLICATION SERVER - JONAS:
Table of Contents

Advertisement

Chapter 6. JOnAS Command Reference

6.3. newbean

6.3.1. Synopsis
newbean
Generates skeletons for all the necessary files for making a bean.
6.3.2. Description
The
tool helps the bean writer start developing a bean by generating skeletons for all the nec-
newbean
essary files for making a bean. Note that this tool creates only templates of the files. These templates
must then be customized and the business logic written. However, the files should be compilable.
To create these templates, type
generates a
newbean
The
must start with a capital letter. Avoid the reserved names: Home, EJB, Session,
Bean Name
Entity. This name will be used as a prefix for all filenames relative to the bean.
The
must be one of the following:
Bean Type
Session Bean
S
Entity Bean
E
Message-Driven Bean
MD
The
Session Type
Stateless Session Bean
L
Stateful Session Bean
F
The
Persistence manager
Bean-Managed Persistence (BMP)
B
Container-Managed Persistence (CMP 1.x)
C
Container-Managed Persistence (CMP 2.x)
C2
The
Bean Location
Remote Interfaces
R
Local Interfaces
L
The
Package name
Usually this is the same as the current directory.
The
argument is the name that will be used to build the
Jar name
extension with this argument. Typically, the last part of the package name is used.
The
Primary Key class
Beans. Its possible values are:
java.lang.String
S
java.lang.Integer
I
Object (Will be chosen later)
O
and enter a set of parameters in interactive mode.
newbean
file.
build.xml
must be one of the following:
must be one of the following:
must be one of the following:
is a dot-separated string representing the package to which the bean belongs.
is the class that represents the primary key. It is required only for Entity
file. Do not provide the
.jar
63
.jar

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the APPLICATION SERVER - JONAS and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Application server

Table of Contents