我通过 amq:broker 命名空间声明了一个代理,但我想知道是否类似于具有 abstract="true" 的常规 spring bean,是否可以创建一个抽象代理“父”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 ?