Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Geronimo must be downloaded and installed. For instructions please see the Geronimo web site. In the Geronimo release of geronimo-1.0-M5 or greater, Tomcat is integrated with Geronimo. By default, Tomcat uses port 8080. This information will be used later.
  2. Download the ServiceMix source code. Please see the Getting Started guide for instructions.
  3. Create the WAR file:
    Code Block
    cd [servicemix_install_dir]\tooling\servicemix-web
    maven war
    
    Wiki Markup
    where {{servicemix_install_dir}} is the directory in which ServiceMix was downloaded and installed. The war file can be found in {{\[servicemix_install_dir\]\tooling\servicemix-web\target\servicemix-web.war}}.
  4. To deploy the ServiceMix WAR file on Geronimo, use the Geronimo deployer.jar tool found in the bin directory of the Geronimo base directory.
    From a command shell:
    Code Block
    cd [geronimo_install_dir]
    java -jar bin/deployer.jar --user system --password manager deploy [servicemix-2.0.x_install_dir]\tooling\servicemix-web\target\servicemix-web.war
    

    The output in the Geronimo console window should show ServiceMix starting. Output will be similar to the following:
    Code Block
    ...    
    Geronimo Application Server started
    13:13:17,062 WARN  [JettyModuleBuilder] Web application does not contain a WEB-INF/geronimo-web.xml deployment plan.  This may or may not
     a problem, depending on whether you have things like resource references that need to be resolved.  You can also give the deployer a sep
    te deployment plan file on the command line.
    
    NOTE: The console output is also logged in geronimo_install_dir\var\log\deployer.log.

Testing the ServiceMix Deployment on

...

Geronimo

To ensure that ServiceMix is running on TomcatGeronimo, do any of the following:

  1. Check the Tomcat console output or the Tomcat log files (see above) to confirm that the servicemix-web is starting without errors.
  2. ServiceMix's default port is 1099. From another window run netstat and search for port 1099.
    From a Windows console, type:
    Code Block
           
    netstat -an|find "1099"
    

    OR

    From a Unix command shell, type:
    Code Block
    netstat -an|grep 1099
    

  3. Run the ServiceMix JMX Console. To do this, enter the following URL in a web browser: http://localhost:8080/servicemix-web. Note: your installation of Tomcat may not be running on port 8080. If that is the case, replace 8080 with the correct port number in the previous URL.
    Try using the JMX console. For example, perform the following steps. Note: this is optional.
    1. Click on "Catalinageronimo".
    2. Click on "Unknown".
    3. Click on the "JMXServlet WebModule" to get monitoring information about the JMX Servlet itself:



  4. An http binding example is supplied. To run the example program perform the following steps:
    1. From a browser, enter the URL http://localhost:8080/servicemix-web/examples. NOTE: If Tomcat is using a different port, such as port 80, substitute the correct port number for 8080 in the URL.



    2. Enter a name or some text in the text box (shown above) and click the Submit button. You will see:




...