0 Replies Latest reply on Dec 17, 2013 2:20 PM by ranjith123

    How to set JVM Properties in Camel CXF Endpoint Attributes

    ranjith123

      Hi All,

       

      I have a Fuse ESB instance running and i am trying to deploy a Service with HTTP port defined as a JVM property. Is there a way to inject JVM property (like -Dtest.port) into the address attribute of CXF Endpoint element. Here is my Camel CXF Endpoint detail. I tried using ${test.port} and {{test.port}}. Nothing helps... I am getting error as follows

       

      java.net.MalformedURLException: Stream handler unavailable due to: For input string: "${test.port}"

       

      <bean>

       

      <cxf:cxfEndpoint id="get"

            serviceName="pxy:XXXXX_Service"

            endpointName="pxy:XXXXX_wsPort"

            address="http://0.0.0.0:{{test.port}}/service_endpoint_address"

            wsdlURL="wsdl/endpoints/XXXXX_Service.wsdl"

      </cxf:cxfEndpoint>

       

      ................

      </bean>

       

      Thank you

      RM