[jboss-jira] [JBoss JIRA] Closed: (JBAS-4805) InitialContextFactory.getHAContext() should not use hardcoded localhost for lookup
William DeCoste (JIRA)
jira-events at lists.jboss.org
Tue Nov 6 22:18:44 EST 2007
[ http://jira.jboss.com/jira/browse/JBAS-4805?page=all ]
William DeCoste closed JBAS-4805.
---------------------------------
Fix Version/s: JBossAS-4.2.3.GA
Resolution: Done
I made this fix in JBPAPP_4_2_0_GA_CP for EAP 4.2.0 CP02
> InitialContextFactory.getHAContext() should not use hardcoded localhost for lookup
> ----------------------------------------------------------------------------------
>
> Key: JBAS-4805
> URL: http://jira.jboss.com/jira/browse/JBAS-4805
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: EJB3
> Affects Versions: JBossAS-4.2.1.GA, JBossAS-5.0.0.Beta2
> Reporter: Galder Zamarreno
> Assigned To: William DeCoste
> Fix For: JBossAS-4.2.3.GA
>
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list