Announcement Announcement Module
Collapse
No announcement yet.
Getting webapp name in bean xml configuration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting webapp name in bean xml configuration

    I'd like to be able to load properties from a directory based on the webapp name of the application.

    Code:
    <context:property-placeholder location="file:/etc/apps/${webappname}/*.properties"/>
    I've read that in 3.1 the Environment abstraction is integrated throughout the container. DefaultWebEnvironment is populated with additional default property sources including servlet config and servlet context parameters by the container. So it seems it should be possible to get webapp name as placeholder, but cant figure out how?
    Last edited by igorsf; Nov 21st, 2012, 01:14 PM.

  • #2
    bump. No one knows if this is possible?

    Comment

    Working...
    X