activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <ben.o...@initekconsulting.com>
Subject FailoverTransport - "Successfully connected to..." log messages
Date Mon, 10 Dec 2012 17:38:32 GMT
I have 2 AMQ 5.7 brokers, one sends messages to the other via a
JMSTemplate/PooledConnectionFactory/FailoverTransport.  It functions fine,
but I see these "Successfully connected to..." messages in my logs for every
message that is sent...is this expected?  

I know I can suppress them with log4j settings, but I'd think that I'd see
one log message when the connection pool is established, then more only if
the connection is closed and it needs to be recreated...is this correct?

here is my config...

String failoverBrokerUrl =
"failover:tcp://localhost:61666?randomize=false&timeout=10000";
ActiveMQConnectionFactory factory = new
ActiveMQConnectionFactory(failoverBrokerUrl);
PooledConnectionFactory pcf = new PooledConnectionFactory(factory);
pcf.setMaximumActive(500);
pcf.setMaxConnections(5);
JMSTemplate jmsTemplate = new JmsTemplate(pcf);
jmsTemplate.setSessionAcknowledgeMode(Session.CLIENT_ACKNOWLEDGE);

here is a sample of my log...

2012-12-10 17:21:33,637 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666
2012-12-10 17:21:33,798 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666
2012-12-10 17:21:33,818 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666
2012-12-10 17:21:34,346 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666
2012-12-10 17:21:35,087 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666
...
2012-12-10 17:26:07,865 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666
2012-12-10 17:26:08,686 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666
2012-12-10 17:26:22,753 INFO  [FailoverTransport] Successfully connected to
tcp://localhost:61666





--
View this message in context: http://activemq.2283324.n4.nabble.com/FailoverTransport-Successfully-connected-to-log-messages-tp4660444.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message