3 Replies Latest reply on Jun 3, 2010 4:16 AM by Anders Jespersen

    Customize url for esb service http-gateway ?

    Anders Jespersen Newbie

      We have a working service in JBoss ESB 4.7, to which we can post a string via a http-gateway:

       

      <service category="Orwell" name="PriceForecastService" invmScope="GLOBAL" description="Receive a priceforecast" >
      <listeners>
        <http-gateway name="Http" urlPattern="esb-price-forecast/*" payloadAs="STRING"/>
      </listeners>
      <actions mep="RequestResponse"><-- ... --></actions>
      </service>
      This works, but the URL becomes:
      http://{host}/{.esb-service-name}/http/{urlPattern}
      Since we prefer to include the version number built by maven on the esb-deployment-file, this becomes something like:
      Clients will then have to update their url whenever we deploy a new version (or we will have to maintain a rewrite or some similar setup)
      Is there any way to change:
      1. context-name for the entire ESB-service - eg deploying the file 'service-1.00.esb' yields a context 'service', not 'service-1.00'
      2. set an absolute url-pattern for the http-gateway - I tried urlPattern with '/pattern', but that is ignored, as far as I can tell