geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r603667 - /geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy
Date Wed, 12 Dec 2007 16:32:40 GMT
Author: gawor
Date: Wed Dec 12 08:32:38 2007
New Revision: 603667

URL: http://svn.apache.org/viewvc?rev=603667&view=rev
Log:
fixed connect command to actually connect to remote servers

Modified:
    geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy

Modified: geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy?rev=603667&r1=603666&r2=603667&view=diff
==============================================================================
--- geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy
(original)
+++ geronimo/server/trunk/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy
Wed Dec 12 08:32:38 2007
@@ -35,9 +35,7 @@
  * @version $Rev: 580864 $ $Date: 2007-09-30 23:47:39 -0700 (Sun, 30 Sep 2007) $
  */
 @CommandComponent(id='geronimo-commands:connect', description="Connect to a Geronimo server")
-class ConnectCommand
-    extends CommandSupport
-{
+class ConnectCommand extends CommandSupport {
 
     @Option(name='-s', aliases=['--hostname', '--server'], description='Hostname, default
localhost')
     String hostname = 'localhost'
@@ -57,8 +55,7 @@
         def kernel = new BasicKernel("gshell deployer")
         def deploymentManager = new RemoteDeploymentManager(Collections.emptySet());
         def deploymentFactory = new DeploymentFactoryWithKernel(kernel, deploymentManager)
-        def uri = null//"service:jmx:rmi://" + hostname + "/jndi/rmi://" + hostname + ":"
+ port + "/JMXConnector"
-        def connectionParams = new ConnectionParamsImpl(uri: uri, user: username, password:
password, offline: false)
+        def connectionParams = new ConnectionParamsImpl(host: hostname, port: port, user:
username, password: password, offline: false)
         def connection = new ServerConnection(connectionParams, io.out, io.inputStream, kernel,
deploymentFactory)
 
         variables.parent.set("ServerConnection", connection)



Mime
View raw message