@ejbgen:jar-settings Annotation

In an EJB project, specifies JAR and table management settings. Typically the attributes on this tag are set in the JAR Settings and Deployment sections of the Property Editor. The various settings are stored in the build.properties file. Some other settings stored in this file are discussed below.

Scope

The EJB Project.

Syntax

@ejbgen:jar-settings

[create-tables="CreateTableOption"]

[disable-warning="IgnoreWarningsList"]

[ejb-client-jar="ClientJarList"]

[enable-bean-class-redeploy="True/False"]

Attributes

create-tables

Optional. Set this attribute to enable automatic table creation for CMP entity beans. For details, see Automatic Table Creation below.

disable-warning

Optional. Provide a comma-separated list of warnings that will be suppressed during EJB deployment. The following warnings can be suppressed (for more information on deployment errors and warning messages, see the WebLogic Server documentation topic EJB Subsystem Messages). To suppress the warning, specify the warning message code in this attribute:

ejb-client-jar

Optional. Specify the name of the client JAR to be generated. An EJB client JAR contains the EJB's home and remote interface classes and any other classes necessary for a client program to access the EJB.

enable-bean-class-redeploy

Optional. Specifies whether the EJBs in the EJB project (that is, the EJB JAR file) can be redeployed without redeploying the entire application (that is, the EAR file). When left unspecified, this settings defaults to False.

Automatic Table Creation

When you are developing a new entity bean, you can make iterative development easier by enabling automatic table creation. Any changes a database table are made immediately after a build when the EJBs are redeployed. The following options are available for the create-tables attribute:

Build.Properties File

The build.properties file stores additional build settings in addition to the attributes of the @ejbgen:jar-settings annotiation. Some of these settings are:

Related Topics

Getting Started with Entity Beans

How Do I: Add an Existing Enterprise JavaBean to an Application?