How to reduce startup time of EAP 6 application which uses JPA?

Solution Unverified - Updated -

Issue

Application is using JPA and references many datasources, which makes JBoss Enterprise Application Server 6 to create instances of EntityManagerFactory class on startup, which is an expensive operation. How can we defer EMFs creation to reduce startup time?

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content