EJB.17.3 Class Files


For each enterprise bean, the EJB JAR file must include the class files of the following:

  • The enterprise bean class

  • The enterprise bean home and remote interface

  • The primary key class if the bean is an entity bean

The EJB JAR file must also contain the class files for all the classes and interfaces that the enterprise bean class and the remote and home interfaces depend on. This includes their superclasses and superinterfaces, and the classes and interfaces used as method parameters, results, and exceptions.

An EJB JAR file does not have to include the class files of the home and remote interfaces of an enterprise bean that is referenced by an enterprise bean in the EJB JAR, or other classes needed by the referenced enterprise bean, if the referenced enterprise bean or needed classes are defined in another jar file that is named in the Class-Path attribute in the Manifest file of the referencing EJB JAR file, or the transitive closure of such Class-Path references. Note that this Class-Path mechanism works only with JDK 1.2 and later.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net