Skip to content
Permalink
Browse files

AS7-4507 Use IPv6-safe URL syntax

  • Loading branch information...
bstansberry committed Apr 12, 2012
1 parent bf9bf82 commit d3fb1ce3f1688a654e19c0e56b7f98e14fd7c137
Showing with 8 additions and 1 deletion.
  1. +5 −0 jacorb/pom.xml
  2. +3 −1 jacorb/src/main/java/org/jboss/as/jacorb/service/CorbaORBService.java
@@ -96,6 +96,11 @@
<artifactId>jboss-as-naming</artifactId>
</dependency>

<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-network</artifactId>
</dependency>

<dependency>
<groupId>org.jboss.jbossts</groupId>
<artifactId>jbossjts</artifactId>
@@ -23,11 +23,13 @@
package org.jboss.as.jacorb.service;

import java.net.InetSocketAddress;
import java.net.URL;
import java.util.Properties;

import org.jboss.as.jacorb.JacORBLogger;
import org.jboss.as.jacorb.JacORBSubsystemConstants;
import org.jboss.as.jacorb.naming.jndi.CorbaUtils;
import org.jboss.as.network.NetworkUtils;
import org.jboss.as.network.SocketBinding;
import org.jboss.as.server.CurrentServiceContainer;
import org.jboss.msc.inject.Injector;
@@ -102,7 +104,7 @@ public void start(StartContext context) throws StartException {
String host = properties.getProperty(JacORBSubsystemConstants.ORB_ADDRESS);
String port = properties.getProperty(JacORBSubsystemConstants.ORB_PORT);
properties.setProperty(JacORBSubsystemConstants.JACORB_NAME_SERVICE_INIT_REF,
"corbaloc::" + host + ":" + port + "/" + rootContext);
"corbaloc::" + NetworkUtils.formatPossibleIpv6Address(host) + ":" + port + "/" + rootContext);

// export the naming service corbaloc if necessary.
String exportCorbalocProperty = properties.getProperty(JacORBSubsystemConstants.NAMING_EXPORT_CORBALOC, "on");

0 comments on commit d3fb1ce

Please sign in to comment.
You can’t perform that action at this time.