Results 1 to 2 of 2

Thread: Getting webapp name in bean xml configuration

  1. #1
    Join Date
    May 2006
    Posts
    20

    Default 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 at 01:14 PM.

  2. #2
    Join Date
    May 2006
    Posts
    20

    Default

    bump. No one knows if this is possible?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •