Hi
I've been trying to use SmallRye Reactive Messaging with OpenWebBeans in
TomEE, and running into an issue that this observer is not fired in the
extension:
https://github.com/smallrye/smallrye-reactive-messaging/blob/4.28.0/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/extension/ReactiveMessagingExtension.java#L53-L57
<T extends EmitterFactory<?>> void processEmitterFactories(
@Observes @WithAnnotations({ EmitterFactoryFor.class })
ProcessAnnotatedType<T> event) {
AnnotatedType<?> annotatedType = event.getAnnotatedType();
emitterFactoryBeans.add(new EmitterFactoryBean<>(annotatedType));
}
The issue seems to be that generics used mean that the method isn't matched
to the EmitterFactory classes.
I have managed to make a small PR:
https://github.com/apache/openwebbeans/pull/129 that makes this work, and I
have added some additional tests, including a case that is similar to the
above.
Could this be considered for inclusion? I'm happy to do any rework
necessary.
Many thanks
Jon