我通过amq:broker命名空间声明了一个Broker,但我想知道是否类似于一个带有abstract =“true”的常规spring bean,是否可以创建一个抽象的Broker“parent”bean并生成子代继承它的属性并完成它?
<amq:broker id="parentBroker" brokerName="parentBroker" useJmx="true" persistent="true" advisorySupport="true" abstract="true">
<amq:transportConnectors>
<amq:transportConnector uri="tcp://localhost:61636" />
</amq:transportConnectors>
</amq:broker>
<amq:broker id="childBroker" parent="parentBroker">
<amq:persistenceAdapter>
<amq:kahaDB directory="/somewhere/kahadb" journalMaxFileLength="32mb" />
</amq:persistenceAdapter>
</amq:broker>
我猜不是,你只需要使用普通的Spring吗?