30210 으로 연결 테스트

This commit is contained in:
zoomk
2025-10-28 17:15:17 +09:00
parent d4243f940a
commit 5e28b004f7
@@ -193,8 +193,20 @@ public class ServiceLocator {
if (cache.containsKey(qConnFactoryName)) { if (cache.containsKey(qConnFactoryName)) {
factory = (QueueConnectionFactory) cache.get(qConnFactoryName); factory = (QueueConnectionFactory) cache.get(qConnFactoryName);
} else { } else {
factory = (QueueConnectionFactory) initial.lookup(qConnFactoryName); // factory = (QueueConnectionFactory) initial.lookup(qConnFactoryName);
cache.put(qConnFactoryName, factory); // 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, "t3://localhost:30210");
InitialContext initial = new InitialContext(env);
factory =
(QueueConnectionFactory) initial.lookup(qConnFactoryName);
cache.put(qConnFactoryName, factory);
} }
} catch (NamingException ne) { } catch (NamingException ne) {
//throw new ServiceLocatorException(ne); //throw new ServiceLocatorException(ne);