Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

  1. List the targets on the current server via the command: deploy(.bat) list-targets, and you can see the following information:
    No Format
    Available Targets:
    org.example.configs/myrepo/2.2/car?ServiceModule=org.example.configs/myrepo/2.2/car,j2eeType=ConfigurationStore,name=Local2
    org.apache.geronimo.configs/j2ee-system/2.2/car?ServiceModule=org.apache.geronimo.configs/j2ee-system/2.2/car,j2eeType=ConfigurationStore,name=Local
    
  2. Deploy the application to the repository repo2, named as "Local2" with the following deploy command:
  • On a Windows system:
    deploy.bat deploy --targets Local2 <SAMPLE_HOME>/applications/geronimo-jsp-examples/target/geronimo-jsp-examples-2.2.war
  • On a non-Windows system:
    deploy deploy --targets Local2 <SAMPLE_HOME>/applications/geronimo-jsp-examples/target/geronimo-jsp-examples-2.2.war
    where <SAMPLE_HOME> is the directory of your samples. Then, the jsp example is deployed to the new repository repo2. The following message is displayed:
    No Format
    
        Deployed org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war @ /jsp-examples
    
  1. Access the application at http:// < host > : < port > /jsp-examples.
  1. To undeploy the application from the repository repo2, run the following deploy (.bat) command:
  • On a Windows system:
    deploy.bat undeploy "org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war"
  • On a non-Windows system:
    deploy undeploy "org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war"
    No Format
    
        Module org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war unloaded.
        Module org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war uninstalled.
    
        Undeployed org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war
    

Creating multiple repositories on multiple server instances

...

  1. Create a directory repo22 under <geronimo_home>/server2, for example, <geronimo_home>/server2/repo22.
  2. Create a file repo22.xml under the <geronimo_home>/server2/repo22 directory. For detailed information about the file, see creating multiple repositories.
  3. Deploy the repo22.xml by running the following command from the command prompt:
  • using non-Windows:
    export GERONIMO_SERVER=server2
    deploy -port instance2_RMI_port deploy $GERONIMO_HOME/server2/repo22/repo22.xml
  • using Windows
    set GERONIMO_SERVER "server2"
    deploy.bat -port instance2_RMI_port deploy %GERONIMO_HOME%/server2/repo22/repo22.xml

You can follow the same steps to create repositories for server instance3.

...

  1. Note the repository name for the repository repo22 that you have previously created. We'll assume the name is Local22.
  2. Deploy the application to the repository repo22 with the following deploy(.bat) command:
  • On a non-Windows system:
    export GERONIMO_SERVER=server2
    deploy -port instance2_RMI_port deploy --targets Local22 <SAMPLE_HOME>/applications/geronimo-jsp-examples/target/geronimo-jsp-examples-2.2.war
  • On a Windows system:
    set GERONIMO_SERVER "server2"
    deploy.bat -port instance2_RMI_port deploy --targets Local22 <SAMPLE_HOME>/applications/geronimo-jsp-examples/target/geronimo-jsp-examples-2.2.war
  1. Undeploy the jsp application from repo22 repository with the following command:
  • On a non-Windows system:
    export GERONIMO_SERVER=server2
    deploy -port instance2_RMI_port undeploy org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war
  • On a Windows system:
    set GERONIMO_SERVER "server2"
    deploy.bat -port instance2_RMI_port undeploy org.apache.geronimo.applications.examples/geronimo-jsp-examples/2.2/war

You can follow the same steps to deploy applications to and undeploy applications from repositories on server instance3.