payara / ecosystem-support

Placeholder repository to handle community requests for the Payara Platform ecosystem tools
3 stars 2 forks source link

Disabling Kafka-RAR at deploy time #26

Closed jellisgwn closed 2 years ago

jellisgwn commented 3 years ago

Have an application that declares an MDB to handle incoming messages from a Kafka Topic. The related feature is not by default enabled - not all instances of the application will connect to the Kafka Topic. Rather than have perpetual errors in the logs it would be good to provide an ActivationConfigProperty that skipped enabling any workers:

@ActivationConfigProperty(propertyName = "enableWorkers", propertyValue = "${kafka.enableWorkers}"

The variable replacement is handled by the container (Wildfly specific, but presumably this is relevant in general).

Would a PR along these lines be welcome?

shub8968 commented 2 years ago

Hi @jellisgwn,

Would you be able to provide a sample test case reproducer? We encourage you to raise a PR for the same.

shub8968 commented 2 years ago

Closing due to inactivity.