| CODENOTIFIER | HelpYou are not signed inSign in |
Project: ProActive
Revision: 10042
Author: acontes
Date: 02 Sep 2008 13:22:18
Changes:resolve PROACTIVE-450
Files:| ... | ...@@ -50,6 +50,8 @@ | |
| 50 | 50 | import org.objectweb.proactive.core.Constants; |
| 51 | 51 | import org.objectweb.proactive.core.config.PAProperties; |
| 52 | 52 | import org.objectweb.proactive.core.config.ProActiveConfiguration; |
| 53 | import org.objectweb.proactive.core.remoteobject.RemoteObjectHelper; | |
| 54 | import org.objectweb.proactive.core.remoteobject.exception.UnknownProtocolException; | |
| 53 | 55 | import org.objectweb.proactive.core.util.ProActiveInet; |
| 54 | 56 | import org.objectweb.proactive.core.util.URIBuilder; |
| 55 | 57 | import org.objectweb.proactive.examples.c3d.C3DDispatcher; |
| ... | ...@@ -235,9 +237,11 @@ | |
| 235 | 237 | int port = -1; |
| 236 | 238 | String protocol = PAProperties.PA_COMMUNICATION_PROTOCOL.getValue(); |
| 237 | 239 | |
| 238 | if (!protocol.equals(Constants.IBIS_PROTOCOL_IDENTIFIER)) { | |
| 239 | port = Integer.parseInt(ProActiveConfiguration.getInstance().getProperty( | |
| 240 | "proactive." + protocol + ".port")); | |
| 240 | try { | |
| 241 | port = RemoteObjectHelper.getDefaultPortForProtocol(protocol); | |
| 242 | } catch (UnknownProtocolException e) { | |
| 243 | // Well should not happen ... | |
| 244 | e.printStackTrace(); | |
| 241 | 245 | } |
| 242 | 246 | |
| 243 | 247 | localhost = URIBuilder.buildURI( |