2 Replies Latest reply on Mar 7, 2011 12:17 AM by amandal

    jboss-esb.xml runtime configuration changes

    amandal

       

       

      I have an ESB that has jbr-listener as the gateway as below -

       

      <jbr-provider name="JBR-Http" protocol="http" host="localhost">

      <jbr-bus busid="Http-1" port="7777" />

      </jbr-provider>

       

      While the 'localhost' above is fine for development, for test, UAT and subsequent environments I need a simplistic approach to change the config values for host, port etc during the esb's deployment by fetching them from some file using ${key_host} or some other way. I do understand that replacing 'localhost' with ${bind.address} does serve half of purpose but what abt the port?

       

      Also, for calls to  webservice clients using SOAPClient as below -

      <action name="soapui-client-action" class="org.jboss.soa.esb.actions.soap.SOAPClient">

               <property name="wsdl" value="http://localhost:18080/acme/services/OrderManagement?wsdl"></property>

               <property name="SOAPAction" value="http://www.acme.com/OrderManagement/SendSalesOrderNotification"></property>

           </action>

       

      How do I change the host name dynamically during deployment?

       

      Currently, I re-write the jboss-esb.xml through ant using a .properties file where I feed in the dynamic host/port etc but does JBossESB provide something of a better approach than this where a separate script need not rebuild the esb and all is handled during server start-up/redeployment itself?

       

       

      Any help is appreciated.

       

      Thanks,

      Aps