You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like Resource.lookup() is ignored. Since lookup() is a "standard" location and mappedName() is platform-specific, perhaps support for lookup() would be preferable.
The lookup() attribute was introduced as part of the Commons Annotations 1.1 revision in 2009, along with Java EE 6. It is not present in the JDK 6 version of the annotation that our support has been designed against back in 2007.
We'll try to support it with meaningful semantics as of Spring Framework 4.3. Thanks for raising this!
It seems that the cleanest semantics are essentially the same that we use for mappedName(): a straight JNDI lookup with the specified location. We'll have to reflectively check that attribute (since it is not present in Java 6 / Java EE 5 which we still support at runtime) but can otherwise treat it just like we treat mappedName() already.
The Alchemist opened SPR-13941 and commented
It looks like
Resource.lookup()
is ignored. Sincelookup()
is a "standard" location andmappedName()
is platform-specific, perhaps support forlookup()
would be preferable.Referenced from: commits b79e8a5
The text was updated successfully, but these errors were encountered: