I started two server instances on my local Windows platform:
geronimo-tomcat7-javaee6-3.0-SNAPSHOT using port 1099,started with the "run Geronimo" command;
geronimo-tomcat6-javaee5-2.2 using port 1109, started with the "startup"command.
On the karaf shell for the geronimo-tomcat7-javaee6-3.0-SNAPSHOT server:
I ran the "deploy:connect --port 1109"command trying to connect the geronimo-tomcat6-javaee5-2.2 server. "Connection established"was displayed.
However,when running the "deploy:list-modules"command, it was the modules belonging to the geronimo-tomcat7-javaee6-3.0-SNAPSHOT server that was listed, indicating that it was still the
geronimo-tomcat7-javaee6-3.0-SNAPSHOT server that was connected.
The information on the command window is as follows:
geronimo> deploy:connect --hostname localhost --port 1109
Found 54 modules