provider url 을 받는방식으로 수정
This commit is contained in:
@@ -196,17 +196,22 @@ public class ServiceLocator {
|
||||
|
||||
// factory = (QueueConnectionFactory) initial.lookup(qConnFactoryName);
|
||||
// cache.put(qConnFactoryName, factory);
|
||||
|
||||
Hashtable<String, Object> env = new Hashtable<>();
|
||||
env.put(Context.INITIAL_CONTEXT_FACTORY, WEBLOGIC_INITIAL_CONTEXT_FACTORY);
|
||||
|
||||
// Admin Server 포트를 사용하는 것이 안전
|
||||
env.put(Context.PROVIDER_URL, com.eactive.eai.common.dao.Keys.PROVIDER_URL);
|
||||
|
||||
InitialContext initial = new InitialContext(env);
|
||||
|
||||
factory =
|
||||
(QueueConnectionFactory) initial.lookup(qConnFactoryName);
|
||||
// 20251029
|
||||
if(com.eactive.eai.common.dao.Keys.PROVIDER_URL != null
|
||||
&& com.eactive.eai.common.dao.Keys.PROVIDER_URL.length() > 10) {
|
||||
Hashtable<String, Object> env = new Hashtable<>();
|
||||
env.put(Context.INITIAL_CONTEXT_FACTORY, WEBLOGIC_INITIAL_CONTEXT_FACTORY);
|
||||
|
||||
// Admin Server 포트를 사용하는 것이 안전
|
||||
env.put(Context.PROVIDER_URL, com.eactive.eai.common.dao.Keys.PROVIDER_URL);
|
||||
|
||||
InitialContext initial = new InitialContext(env);
|
||||
|
||||
factory =
|
||||
(QueueConnectionFactory) initial.lookup(qConnFactoryName);
|
||||
}else {
|
||||
factory = (QueueConnectionFactory) initial.lookup(qConnFactoryName);
|
||||
}
|
||||
cache.put(qConnFactoryName, factory);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user