I am using following broker URL:
failover(tcp://broker1,tcp://broker2)randomize=false&jms.useAsyncSend=false&jms.dispatchAsync=false&maxReconnectAttempts=30&maxReconnectDelay=3000

The problem is that upon a failover, all producers are closed, but once the
connection is reatempted to the second broker, the same pooled CLOSED
producers are picked by getMessageProducer:

    @Override
    public MessageProducer createProducer(Destination destination) throws
JMSException {
        return new PooledProducer(getMessageProducer(destination),
destination);
    }

Is this a bug?



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-how-to-deal-with-producer-is-closed-tp4707279p4707283.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to