答案 0 :(得分:1)
也许是这样的?他们必须是不同的代理人,所以你的实际代理人数是实际所需数量的3倍。
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:config="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<!-- define configuration properties -->
<cm:property-placeholder persistent-id="com.tommyqu.common" update-strategy="reload">
<cm:default-properties>
<cm:property name="activemq.group.name" value="edpDev" />
<cm:property name="event.destinationQueue" value="edp-event" />
</cm:default-properties>
</cm:property-placeholder>
<bean id="eventBean" class="com.tommyqu.EventBean">
<property name="queueGroupName" value="${activemq.group.name}" />
<property name="eventQueueName" value="${event.destinationQueue}" />
</bean>
</blueprint>