0 Replies Latest reply on Aug 22, 2013 10:01 AM by Geraldo Santos

    How to externalize Hibernate configuration

    Geraldo Santos Newbie



      How can I externalize hibernate configuration, such as the dialect, in jboss as 7.x?


      In previous versions we used the hibernate.properties in the conf directory, but with the new classloading this approach wont work anymore.


      We were able to make it work by putting the hibernate.properties in the org.hibernate module (and editing it's module.xml) but it doesn't seem right since all other applications would have to use these same configuration.



      So, any ideas?