Well its ugly but i have to get around it by manual loading the JNDI data
source.
private static DataSource getJndiDataSource() {
DataSource dataSource = null;
final String datasourceContext = "java:comp/env/jdbc/DS"
try {
final Context initialContext = new InitialContext();
dataSource = (DataSource)
initialContext.lookup(datasourceContext);
} catch (final NamingException namingException) {
AppModule.LOG.error("can't get data source",
namingException);
}
return dataSource;
}
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/tapestry-spring-injecting-with-multiple-implementation-tp3318764p4266441.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]