Announcement Announcement Module
Collapse
No announcement yet.
Dynamically include context XML file based on runtime setting? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    You can use a file with the same name but different contents for different servers.

    Comment

    Working...
    X