Thursday, September 28, 2017

Reason why you get "RabbitMQ connection closed for inbound" INFO log in WSO2 ESB


This post is written based on WSO2 ESB 5.0.0


INFO LOG

INFO {org.wso2.carbon.inbound.endpoint.protocol.rabbitmq.RabbitMQConnectionConsumer} -  RabbitMQ connection closed for inbound RabbitInbound {org.wso2.carbon.inbound.endpoint.protocol.rabbitmq.RabbitMQConnectionConsumer}


Possible reasons for this log

colsedConnection() method[1] will be called when;

  • the inbound endpoint is undeployed/redeployed 
  • when server stop
  • If ESB couldn't establish RabbitMQ connection

References

[1]. https://github.com/wso2/carbon-mediation/blob/80ce1edb7d065576df94bfe9a5f3df10cbab2f6a/components/inbound-endpoints/org.wso2.carbon.inbound.endpoint/src/main/java/org/wso2/carbon/inbound/endpoint/protocol/rabbitmq/RabbitMQConnectionConsumer.java#L332