How to externalize Hibernate properties in an OSGi bundle ?

Solution Unverified - Updated -

Issue

  • Is there a way to externalize hibernate properties into a config file specific to a bundle/persistence.xml ? I really do want repackage bundles just to change a property, for example, hibernate.show_sql.
  • One of the motivations for doing this is we don't want to repackage bundles just to change a property. This a standalone Fuse instance deployment.

Environment

  • Red Hat JBoss Fuse
    • 6.x
  • Hibernate

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.