
|
Application-Managed JPA for Geronimo 1.1 Web Apps
This plugin adds support for Application-Managed JPA to Geronimo 1.1.x. It currently supports Web Applications, which may include a JPA persistence.xml file (e.g. at WEB-INF/classes/META-INF/persistence.xml believe it or not, or in a JAR file in WEB-INF/lib) and JPA entity classes. When the web application is deployed, the JPA EntityManagerFactory is available in JNDI, at java:comp/env/jpa/(Persistence Unit Name) In order for the JPA system to connect to a database, you should set up a database connection pool in Geronimo, which should be used only by the JPA provider (not used separately from application code). The name of this pool should be entered as a non-jta-data-source in the persistence.xml file. Additionally, the transaction-type should always be set to RESOURCE_LOCAL in the persistence.xml. Finally, note that you must install at least one JPA provider plugin in addition to this plugin. If no JPA providers are installed then no JPA applications can be deployed. Plugin InformationThe GPlugins Development Team BSD -- Apache Software License 2.0 http://gplugins.sourceforge.net/ Download LinksYou can use the links here to download the plugin, and then use the install-plugin option of the deploy tool to install the plugin. Any dependencies will still be downloaded separately when you install the plugin. You may also install the plugin directly from the console without downloading it here (just use the plugin Create/Install screen in the console). This table shows the current version of the plugin for each version of Geronimo it runs in.
|