Hi, I'm using Appfuse with hibernate and I want to run my unit/integration tests in HSQLDB (or a different in-memory database) but use mysql for my production environment as well as my staging environment.
Basically: Run the test phase using HSQLDB, but switch to using mysql for mvn jetty:run-war or mvn war -> but then with different username/password configurations. I would guess this is a quite common pattern, so how should it be done? I've found some pointers, but I am not completely satisfied with them: [1] shows how to configure Appfuse to use HSQLDB, but I cannot find where the xml fragments should go. Also [2] discusses how to do this using different profiles. 1. http://thread.gmane.org/gmane.comp.java.appfuse.user/20476 2. http://thread.gmane.org/gmane.comp.java.appfuse.user/28929/focus=29007 It seems to me that the best way would be if different profiles could be activated for different phases (test, jetty:run-war) but that seems to me not to be possible. So, what is the best way to do this? Kind regards, Tarjei -- View this message in context: http://www.nabble.com/Separate-database-settings-for-testing%2C-staging-and-production-tp19586169s2369p19586169.html Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]