I have some service that send message to RabbitMQ after database transaction commit.
When the application stops while the transaction commit RabbitMessagePublisher.send throw java.lang.IllegalStateException: connection '8c9ff08f-e48f-4b14-bf6d-d159d4d8c3d0' is not active.
I think this behavior is related to the initialization of the plugin. Plugin load after database layer (domain classes) and destroy before database layer.
Maybe changing the plugin initialization order will solve this problem?
I use 3.1.3 plugin version and grails 2.5.6