Enterprise Java Development@TOPIC@

Chapter 96. Server-side Resources

96.1. SQL DataSource (defined in Server)
96.2. Server-side persistence.xml
96.2.1. persistence.xml Placement
96.2.2. Reference External @Entities
96.3. Summary



  • jar-file element able to reference external JAR using a deterministic, portable path in EAR

  • jar-file element not usable in WARs


Note

There is no need to declare "class" entity references into a properly configured "jar-file" that is located in the classpath of a deployed EAR. Use "class" entity references when using a WEB-INF/classes/META-INF deployment of a WAR -- or if you really need to only include specific entities in the archive.