Spring deployment-level configuration

Posted by Robert Wilson on Stack Overflow See other posts from Stack Overflow or by Robert Wilson
Published on 2010-05-05T17:04:52Z Indexed on 2010/05/05 17:08 UTC
Read the original article Hit count: 157

Filed under:
|

When I wrote JEE apps, I used JBoss Datasources to control which databases the deployment used. E.g. the dev versions would use a throwaway hibernate db, the ref and ops would use stable MySQL deployments. I also used MBeans to configure various other services and rules.

Now that I'm using Spring, I'd like the same functionality - deploy the same code, but with different configuration. Crucially, I'd also like Unit Tests to still run with stub services. My question is this - is there a way, in JBoss, to inject configuration with files which live outside of the WAR/EAR, and also include these files in test resources.

© Stack Overflow or respective owner

Related posts about spring

Related posts about jboss