-
Apr 6th, 2006, 09:25 AM
#1
Dynamically include context XML file based on runtime setting?
Hello,
I have a system that will be being deployed on both Weblogic and Tomcat. On Weblogic, I would like to use Weblogic's connection pooling and JTA TransactionManager. On Tomcat, I'd like to use JOTM and their XA Pool. My preference would be to define the data sources and transaction managers in different files (weblogic-tx-beans.xml and jotm-tx-beans.xml) and have one or the other imported into my main spring-beans.xml.
I tried with the PropertiesPlaceholderConfigurer (<import resource="${tx-type}-tx.beans.xml"/>), but no go since imports are processed first.
Does anybody have any ideas about this? I'd rather our engineering group not have to switch spring-beans files around at deploy time.
Thanks,
Scott Rankin
-
Apr 7th, 2006, 03:15 AM
#2
You can use a file with the same name but different contents for different servers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules