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.
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: