fix - jndi lookup 에 resourceRef true 적용
- java:comp/env 네임스페이스 자동 prepend - tomcat ContextResource 매칭 위함
This commit is contained in:
@@ -27,6 +27,7 @@ public class BaseDatasourceConfiguration {
|
||||
protected DataSource jndiLookup(String jndiName) throws NamingException {
|
||||
JndiObjectFactoryBean bean = new JndiObjectFactoryBean();
|
||||
bean.setJndiName(jndiName);
|
||||
bean.setResourceRef(true);
|
||||
bean.setProxyInterface(DataSource.class);
|
||||
bean.afterPropertiesSet();
|
||||
return (DataSource) bean.getObject();
|
||||
|
||||
Reference in New Issue
Block a user