geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcco...@apache.org
Subject svn commit: r687428 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
Date Wed, 20 Aug 2008 19:20:00 GMT
Author: mcconne
Date: Wed Aug 20 12:20:00 2008
New Revision: 687428

URL: http://svn.apache.org/viewvc?rev=687428&view=rev
Log:
GERONIMODEVTOOLS-176 Support added to allow user to use non-default naming port. Thanks to
BJ Reed for this patch !!

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java?rev=687428&r1=687427&r2=687428&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/main/java/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
Wed Aug 20 12:20:00 2008
@@ -743,11 +743,12 @@
 		Map map = new HashMap();
 		String user = getGeronimoServer().getAdminID();
 		String password = getGeronimoServer().getAdminPassword();
+		String port = getGeronimoServer().getRMINamingPort();
 		map.put("jmx.remote.credentials", new String[] { user, password });
 		map.put("java.naming.factory.initial", "com.sun.jndi.rmi.registry.RegistryContextFactory");
 		map.put("java.naming.factory.url.pkgs", "org.apache.geronimo.naming");
 		map.put("java.naming.provider.url", "rmi://" + getServer().getHost()
-				+ ":1099");
+				+ ":" + port);
 
 		String url = getGeronimoServer().getJMXServiceURL();
 		if (url != null) {



Mime
View raw message