Monthly Archives: February 2011

Custom tubes sample for Metro

I have just added a new custom-tubes sample to the Metro/WSIT sample collection. It is based on one of my previous posts on intercepting web service calls in Metro using custom tubes. I have tested the sample with GlassFish 3.1-b40 and latest Metro 2.1 standalone bundle used on the client side.

To run the sample you need to follow these steps:

  1. Download and install most recent build of GlassFish 3.1 from the following location:
    • Don’t forget to set the AS_HOME environment variable to point to your GlassFish installation directory
  2. Start GlassFish, e.g. $AS_HOME/bin/asadmin start-domain
  3. Download most recent Metro 2.1 standalone bundle from the Metro maven repository:
  4. Unzip the downloaded Metro 2.1 standalone bundle and set METRO_HOME environment variable to point to the unzipped metro/ directory
  5. Change to the custom-tubes sample directory, e.g. cd $METRO_HOME/samples/custom-tubes
  6. Follow the Readme.txt file located in the  custom-tubes sample directory to build and run the sample