my Message Driven Bean performs very intensive operations, so I would like to limit its pool size, or my server would be overloaded. I tried this (code), but it does not work, its pool is still 32 (empirically verified, from time to time I restart the server so that there are no empty instances).
@MessageDriven( mappedName = "jms/TestTopic", activationConfig = { @ActivationConfigProperty( propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge" ), @ActivationConfigProperty( propertyName = "destinationType", propertyValue = "javax.jms.Topic" ), @ActivationConfigProperty( propertyName = "subscriptionDurability", propertyValue = "Durable" ), @ActivationConfigProperty( propertyName = "clientId", propertyValue = "Reader" ), @ActivationConfigProperty( propertyName = "subscriptionName", propertyValue = "Reader" ), @ActivationConfigProperty( propertyName = "endpointPoolMaxSize", propertyValue = "1" ), @ActivationConfigProperty( propertyName = "endpointPoolResizeCount", propertyValue = "1" ), @ActivationConfigProperty( propertyName = "endpointPoolSteadySize", propertyValue = "0" ) } ) public class Reader implements MessageListener {
I am using EJB 3 on Glassfish v3 on JDK 6. The application uses the EE 6 standard.
Can you help me how to limit the pool, please? Thanks for any help.
source share