bean class 的无效 属性 'maximumActive'

Invalid property 'maximumActive' of bean class

我在尝试连接到 activemq 时收到此错误

ConnectException:bean class [org.apache.activemq.pool.PooledConnectionFactory] 的 属性 'maximumActive' 无效:Bean 属性 'maximumActive' 不可写或有一个无效的 setter 方法。 setter 的参数类型是否匹配 getter 的 return 类型?

不确定这是什么意思。我是否错过了 bean 创作中的某些东西?

我有这个设置:

bean id="llmJmsConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory">

    <property name="maximumActiveSessionPerConnection" value="20" />


    <property name="maxConnections" value="10" />

    <property name="connectionFactory" ref="llmJmsConnectionFactoryBase" />
</bean>

是的,属性不一样:

maximumActiveSessionPerConnection

在您的 Spring 配置中试试这个。