Java Persistence API (JPA) Extensions Reference for EclipseLink, Release 2.4
  Go To Table Of Contents
 Search
 PDFComments
Comments


deploy-on-startup

Use eclipselink.deploy-on-startup to configure deployment on startup (at the creation of the EntityManagerFactory) instead of occurring the first time an EntityManager is created.


Values

Table 5-31 describes this persistence property's values.

Table 5-31 Valid Values for

Value Description

true


false

(Default)



Usage

Using true may increase startup time of a JavaEE server, but will avoid the first request from hanging as the persistence unit is deployed.


Examples

Example 5-19 shows how to use this property in the peristence.xml file.

Example 5-19 Using deploy-on-startup in persistence.xml

<property name="eclipselink.deploy-on-startup" value="true" />


See Also

For more information, see: