linux - jboss fuse 6.2.1 mq in fabric -


i have jboss fuse 6.2.1 on linux server in fabric mode 2 child container. created mq command

fabric:mq-create --group mur --assign-container risng1,risng2 --port tcp=61617 mur-broker mq profile mq-broker-mur.mur-broker ready 

but expect transport protocol configured static port 61617 dynamic.

in fuse 6.1 modifed base template broker.xml

 <transportconnector name="openwire" uri="tcp://0.0.0.0:${bindport}"/> 

bind port configured in properties in profile. in fuse 6.2 not work. question how configured static port in fabric mode on jms broker?

i found closed issue https://issues.jboss.org/browse/fabric-1237

solved,

you can use custom template in profile

    <beans   xmlns="http://www.springframework.org/schema/beans"   xmlns:amq="http://activemq.apache.org/schema/core"   xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd   http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">      <!-- allows use system properties , fabric variables in configuration file -->     <bean class="org.springframework.beans.factory.config.propertyplaceholderconfigurer">         <property name="properties">             <bean class="io.fabric8.mq.fabric.configurationproperties"/>         </property>     </bean>      <broker xmlns="http://activemq.apache.org/schema/core" brokername="${broker-name}" datadirectory="${data}" start="false" restartallowed="false">          <destinationpolicy>             <policymap>               <policyentries>                 <policyentry topic=">" producerflowcontrol="true">                   <pendingmessagelimitstrategy>                     <constantpendingmessagelimitstrategy limit="1000"/>                   </pendingmessagelimitstrategy>                 </policyentry>                 <policyentry queue=">" producerflowcontrol="true" memorylimit="1mb">                 </policyentry>               </policyentries>             </policymap>         </destinationpolicy>          <managementcontext>             <managementcontext createconnector="false"/>         </managementcontext>          <persistenceadapter>             <kahadb directory="${data}/kahadb"/>         </persistenceadapter>          <plugins>             <jaasauthenticationplugin configuration="karaf" />         </plugins>          <systemusage>             <systemusage>                 <memoryusage>                     <memoryusage percentofjvmheap="70"/>                 </memoryusage>                 <storeusage>                     <storeusage limit="500 mb"/>                 </storeusage>                 <tempusage>                     <tempusage limit="500 mb"/>                 </tempusage>             </systemusage>         </systemusage>          <transportconnectors>             <transportconnector name="openwire" uri="tcp://${bindaddress}:61617"/>         </transportconnectors>     </broker>  </beans> 

and edit properties

    group = mur broker-name = mur-broker connectors=openwire kind = masterslave data = ${runtime.data}mur-broker config=profile\:broker-mur.xml config.checksum=${checksum:profile\:broker-mur.xml} standby.pool=default bindaddress=0.0.0.0 bindport=61617 

Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -