Skip to content
This repository was archived by the owner on Jul 2, 2023. It is now read-only.

Graceful shutdown when use RabbitMessagePublisher #153

@ishea

Description

@ishea

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions