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