Rules Implemented by the Verify EJB Tool

This document lists the rules imposed on EJB deployment descriptors and code as per the EJB 2.0 specification.

Note: The EJB Verifier verifies modules and beans developed to the EJB 2.0 specification (including CMP 1.x beans in accordance with the EJB .20 specification). It does not support modules and beans developed to the EJB 1.1 specification.

The EJB Verifier in JDeveloper 9.0.4 implements many of these rules; the remainder should be implemented by 9.0.5. The implemented rules are identified by a filled bullet character, the unimplemented ones by an unfilled bullet character. For example:

There is a fair amount of duplication between rules for session, entity CMP, and entity BMP beans and rules for remote and local homes, etc. Thus, many rules appear multiple times differing only by the specification reference.

Messages are worded to describe the scope of an issue properly. For example, CMP 2.x entity beans must be abstract, but BMP and CMP 1.x entity beans must not. So the message refers to "CMP 2.x entity bean", "BMP entity bean", or "CMP 1.x entity bean", as appropriate. On the other hand, all entity beans must extend javax.ejb.EntityBean, so the message refers only to "entity bean".

Some rules have [warning] appended. These typically flag things that are specifically discouraged by the spec, but not absolutely prohibited. Usually in these cases, the message text contains "should" rather than "must".

Deployment Descriptor Rules

Rules are grouped by enclosing DTD element. The paths in parentheses at the end of each rule designate the specific DTD element to which the rule applies, relative to the enclosing DTD element ("." indicates the "enclosing" element itself).

Bean Descriptions

<entity>, <message-driven>, <session>

<entity>, <session>

<session>

<message-driven>

<entity>

<entity> CMP

<entity> CMP 2.x

<entity> CMP 1.x

<entity> BMP

Relationships

<ejb-relation>

Assembly Descriptor

<assembly-descriptor>

Miscellaneous

<large-icon>, <small-icon> (in <ejb-jar>, <entity>, <message-driven> , <session>)

<ejb-client-jar>

Interface and Class Rules

Session Bean

session bean class

session bean class method bodies

session remote interface

session home interface

stateful session home interface

stateless session home interface

session local interface

session local home interface

stateful session local home interface

stateless session local home interface

CMP 2.x Entity Bean

CMP 2.x entity bean class

CMP 2.x entity bean class method bodies

CMP 2.x entity remote interface

CMP 2.x entity remote home interface

CMP 2.x entity local interface

CMP 2.x entity local home interface

CMP 2.x entity dependent value

CMP 2.x entity primary key class

BMP and CMP 1.x Entity Bean

BMP and CMP 1.x entity bean class

BMP entity bean class

CMP 1.x entity bean class

BMP and CMP 1.x entity bean class method bodies

BMP and CMP 1.x entity remote interface

BMP and CMP 1.x entity remote home interface

CMP 1.x entity remote home interface

BMP entity remote home interface

CMP 1.x entity remote home interface

BMP entity local interface

BMP entity local home interface

BMP and CMP 1.x entity primary key class

CMP 1.x entity primary key class

Message-Driven Bean

message-driven bean class

message-driven bean class method bodies

EJB Clients

EJB client method bodies

 

 

Copyright © 1997, 2004, Oracle. All rights reserved.