Invalid property 'maximumActive' of bean class

user3138101 :

I am getting this error when trying to connect to activemq

ConnectException: Invalid property 'maximumActive' of bean class [org.apache.activemq.pool.PooledConnectionFactory]: Bean property 'maximumActive' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

Not sure what does it mean . Do I miss something in the bean creation ?

I have this setting :

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>
Marco Behler :

Yes, the property is different:

maximumActiveSessionPerConnection

Try that instead in your Spring config.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=403433&siteId=1