Announcement Announcement Module
Collapse
No announcement yet.
import resource with env setting Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • import resource with env setting

    Hi,

    I am trying to import a content.xml which contains some aspects like
    <import resource="classpath:/app/#{env}/profiling.xml" />

    In this case the #{env} is set from JNDI using the following

    <jee:jndi-lookup id="env" jndi-name="J2EE_SYS" default-value="local"/>

    Is seems that spring is trying to find the path of /app/#{env}/profiling.xml instead of
    /app/local/profiling.xml.

    Is there a way to create this value so that is can be aware of the #{env} setting?
Working...
X