-
Bug
-
Resolution: Done
-
Major
-
JBossAS-5.0.0.Beta2, JBossAS-4.2.1.GA
-
None
-
Low
-
org.jboss.ejb3.InitialContextFactory.getHAContext() contains:
env.put(Context.PROVIDER_URL, "localhost:" + getHaJndiPort());
InitialContext haCtx = new InitialContext(env);
The code should not have hardcoded localhost because as soon as someone binds JBoss
to something different, a localhost lookup will fail.
This could should instead check HAJNDI service's BindAddress attribute and use that.
- is incorporated by
-
JBPAPP-356 InitialContextFactory.getHAContext() should not use hardcoded localhost for lookup
- Resolved
- is related to
-
EJBTHREE-975 HA-JNDI InitialContext for @Resource annotation
- Closed