You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2009/03/05 17:31:50 UTC
svn commit: r750501 -
/geronimo/server/branches/2.1/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy
Author: gawor
Date: Thu Mar 5 16:31:50 2009
New Revision: 750501
URL: http://svn.apache.org/viewvc?rev=750501&view=rev
Log:
make sure RemoteDeploymentManager doesn't get reused (GERONIMO-4570)
Modified:
geronimo/server/branches/2.1/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy
Modified: geronimo/server/branches/2.1/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.1/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy?rev=750501&r1=750500&r2=750501&view=diff
==============================================================================
--- geronimo/server/branches/2.1/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy (original)
+++ geronimo/server/branches/2.1/framework/modules/geronimo-commands/src/main/groovy/org/apache/geronimo/commands/ConnectCommand.groovy Thu Mar 5 16:31:50 2009
@@ -24,8 +24,7 @@
import org.apache.geronimo.gshell.command.CommandSupport
import org.apache.geronimo.deployment.cli.ServerConnection
import org.apache.geronimo.deployment.cli.ServerConnection.UsernamePasswordHandler
-import org.apache.geronimo.deployment.plugin.factories.DeploymentFactoryWithKernel
-import org.apache.geronimo.deployment.plugin.jmx.RemoteDeploymentManager
+import org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory
import org.apache.geronimo.cli.deployer.ConnectionParamsImpl
import org.apache.geronimo.kernel.basic.BasicKernel
import org.apache.geronimo.gshell.command.annotation.Requirement
@@ -70,8 +69,7 @@
}
def kernel = new BasicKernel("gshell deployer")
- def deploymentManager = new RemoteDeploymentManager(Collections.emptySet());
- def deploymentFactory = new DeploymentFactoryWithKernel(kernel, deploymentManager)
+ def deploymentFactory = new BaseDeploymentFactory()
def connectionParams = new ConnectionParamsImpl(host: hostname, port: port, user: username, password: password, offline: false, secure: secure)
def connection = new ServerConnection(connectionParams, new GShellUserPasswordHandler(prompter), kernel, deploymentFactory)