How to externalize Hibernate properties in an OSGi bundle ?

Solution Unverified - Updated -


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


  • Red Hat JBoss Fuse
    • 6.x
  • Hibernate

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