Anybody? :-/
On Thu, Nov 12, 2015 at 1:10 PM, Andrei Ivanov
wrote:
> Hi,
> After reading https://bitbucket.org/sgarlick/demo/wiki/JNDI, I tried to
> apply that to my app deployed on Tomcat:
>
> Tomcat context.xml has this entry:
>
>
> The application web.xml has this entry:
>
> spring.profiles.active
> java.lang.String
> java:comp/env/env/enss/profile
>
>
> From what I understand, when Spring looks up
> java:comp/env/spring.profiles.active Tomcat should find it using the value
> provided in the mapped-name.
>
> It doesn't work and by looking at the Tomcat 8.0.28 sources, the
> mapped-name is just added in the properties of ContextEnvironment, but it's
> never used.
>
> Did I misunderstand what the mapped-name should do?
> Or is it a bug in Tomcat that it doesn't use mapped-name for anything?
>
> Thank you
>