We're using Hibernate 3.2.5 in JBoss 4.0.2. In development we use PostgreSQL, but in production we're goin to use DB2. Hibernate is initialized through the Hibernate jmx bean (in a .sar file included in the application).
As the dialect depends on the target environment (postgreSQL or DB2), I'd like to keep this condiguration outside of the application (.ear file) as I would like to use the same archive for all environments. As of now I configure the dialect in the jboss-service.xml, which is part of the application (as the .sar file is part of the application).
How could I solve this?
|