Skip to content

LRA service singleton invoked twice singletons are created twice when the CDI observers subsystem is used #165

Description

@marcosgopen

Replaces https://issues.redhat.com/browse/JBTM-3237

When the LRA coordinator is ran with Quarkus the LRAService ApplicationScoped bean initialise event is triggered twice. I noticed this problem when running with Quarkus (quarkusio/quarkus#2673) but the resolution of that issue was that CDI is under-specified in this area. The fix for our needs is to observe the bean being destructed using the Quarkus ShutdownEvent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions