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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.