JNDI 사용시 property를 설정해서 사용할 수 있으며, 사용되는 property의 순서는 아래의 list를 기준으로 순서를 정하게 된다.
- InitialContext 생성시 명시적인 coding
- System property
- classpath 에 있는 jndi.properties 파일
- classpath 뒤에 있는 jndi.properties 파일 (classpath order에 의해 적용됨)
- 현재 JVM 이 start된 working directory 에 있는 jndi.properties 파일 (보통 WebLogic Server Domain Home)
- JVM lib 디렉토리에 위치한 jndi.properties 파일
참고 : http://dev2dev.bea.com/pub/a/2004/01/142.html
set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.naming.factory.initial=weblogic.jndi.WLInitialContextFactory -Djava.naming.provider.url=t3://IP:PORT
다음검색