0 Replies Latest reply on Jul 18, 2013 4:05 AM by mbsakho

    injecting jboss system properties in my endpoint

    mbsakho

      Hi all,

      I need to customise my endpoint with defined system properties.

      I've defined two system properties just like below (right after the extention node in the standalone.xml).

       

      <system-properties>

              <property name="endpoint.host" value="mywshost"/>

              <property name="endpoint.port" value="xxxx"/>

          </system-properties>

       

       

      In the endpoint node of the jbossws-cxf.xml, I would like to customise the endpoint adress with the defined properties

       

      <jaxws:endpoint xmlns:tns="http://societedecaution.fr/wsdl/service/jv/casden/caution/v1"

              id="cadenCautionSA" serviceName="tns:CasdenCautionSAService"

              endpointName="tns:ICasdenCautionSARemotePort"

             address="http://@endpoint.host@:@endpoint.port@/jv/CasdenCautionSAService"

              implementor="fr.societedecaution.wsdl.service.jv.casden.caution.v1.impl.CasdenCautionSARemoteImpl">

           

              <jaxws:invoker>

                  <bean class="org.jboss.wsf.stack.cxf.JBossWSInvoker" />

              </jaxws:invoker>

       

              </jaxws:inInterceptors>

          </jaxws:endpoint>

       

      But it seems no to work.

      Can someone tells me how I could load theses defined properties in the jbossws-cxf.xml?

       

      Any help would be greetly appreciated

      Massai