4 Replies Latest reply on Nov 10, 2009 12:42 PM by Daffy Duck

    How to make httpj:engine port value configurable

    Daffy Duck Novice



      In my bundle-context.xml I've declared a httpj:engine-factory block which contains a httpj:engine block.

      I fail to make the port attribute value configurable.


      For example:


      <httpj:engine-factory bus="cxf">

              <httpj:engine port="${ws.port}">







      But this doesn't work (exception raised: port number has to be an integer).


      I don't want to hardcode the port number in my bundle (I expose a cxf endpoint with a url that can be set in an external cfg file in /etc folder: the port of the jetty engine has to match the value of the endpoint's port).


      Any solution?