-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add defaultObject attribute to <jee:jndi-lookup> tag [SPR-3785] #8465
Comments
Tristan ROBET commented It's strange nobody comments this issue... Nobody use Spring with JEE ? This is a duplicate with https://jira.springsource.org/browse/SPR-4012 But here is a way to use jee:jndi-lookup with JUnit tests without default local Datasource value : Just initialize a new InitialContext with datasource references in your TestCase setup methods : import javax.naming.Context; public class JndiDatasourceCreator {
} Source (in french) : http://desgeeksetdeslettres.com/blog/programmation-java/junit-test-unitaire-hors-conteneur-j2ee-avec-spring-et-jndi |
Chris Beams commented In reply to comment #1:
|
Roman Shevchenko opened SPR-3785 and commented
A defaultObject property of JndiObjectFactoryBean is not available via otherwise perfect jee:jndi-lookup tag and this makes it unusable when looking for optional JNDI settings.
Affects: 2.0.6
Issue Links:
1 votes, 5 watchers
The text was updated successfully, but these errors were encountered: