cryostatio / cryostat

Secure JDK Flight Recorder management for containerized JVMs
https://cryostat.io
Other
12 stars 9 forks source link

[Bug] Discovery mechanisms may not operate within a valid Transaction context #405

Closed andrewazores closed 5 months ago

andrewazores commented 5 months ago
          I don't think this annotation will work as intended, since this method is not an "entrypoint" that the Quarkus framework calls into but rather one that is invoked from other application code.

https://quarkus.io/guides/transaction#programmatic-approach

I think this example is probably suitable:

        QuarkusTransaction.joiningExisting().run(() -> {
            //do work
        });

_Originally posted by @andrewazores in https://github.com/cryostatio/cryostat3/pull/325#discussion_r1577975160_

Related #389