<beans
xmlns=
"http://www.springframework.org/schema/beans"
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">
<bean class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
>
<property name=
"locations"
>
<value>
file
:${activemq.conf}
/credentials
.properties<
/value
>
<
/property
>
<
/bean
>
<broker xmlns=
"http://activemq.apache.org/schema/core"
brokerName=
"activemq-1"
>
<networkConnectors>
<networkConnector uri=
"static:(tcp://192.168.1.105:61626)"
/>
<
/networkConnectors
>
<persistenceAdapter>
<kahaDB directory=
"${activemq.data}/kahadb"
/>
<
/persistenceAdapter
>
<transportConnectors>
<transportConnector name=
"openwire"
uri=
"tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"
/>
<
/transportConnectors
>
<
/broker
>
<
import
resource=
"jetty.xml"
/>
<
/beans
>
同理,在192.168.1.105上配置(写入192.168.1.104:61616)
<beans
xmlns=
"http://www.springframework.org/schema/beans"
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">
<bean class=
"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
>
<property name=
"locations"
>
<value>
file
:${activemq.conf}
/credentials
.properties<
/value
>
<
/property
>
<
/bean
>
<broker xmlns=
"http://activemq.apache.org/schema/core"
brokerName=
"activemq-1"
>
<networkConnectors>
<networkConnector uri=
"static:(tcp://192.168.1.104:61616)"
/>
<
/networkConnectors
>
<persistenceAdapter>
<kahaDB directory=
"${activemq.data}/kahadb"
/>
<
/persistenceAdapter
>
<transportConnectors>
<transportConnector name=
"openwire"
uri=
"tcp://0.0.0.0:61626?maximumConnections=1000&wireFormat.maxFrameSize=104857600"
/>
<
/transportConnectors
>
<
/broker
>
<
import
resource=
"jetty.xml"
/>
<
/beans
>
网友评论