|
|
Is there a way to get the web application name that the context is starting in as a property that can be used in the context XML files? We're trying to get a web app-unique value for an ActiveMQ brokerName property.
We have a common module that is shared between web applications, and that common module has a Spring context file in the JAR that configures an ActiveMQ embedded broker based upon a common external property file. If two web apps start in the same Tomcat, those brokers conflict (because both load the same module, through the same context XML based upon properties in the same property file). However, if we can change the broker name based upon the web application name, we'd be able to continue using the shared context XML for the shared module between web applications.
Something like:
lt;amq:broker brokerName=quot;${context.webapp.name}quot; ...gt;
Any ideas? Thanks! |
|