-
Feature Request
-
Resolution: Unresolved
-
Major
-
0.10.1
-
None
Our MessageConsumers and MessageProducers use SmallRye Reactive Messaging to connect to Kafka (via the kafka-connector). However, there is also a camel-connector that allows us to use Camel components to send an receive messages.
By supporting this Camel connector, we can virtually connect our engine to anything.
To support this, we need to adapt the MessageConsumer generator to not only accept a type of "String", as that type is not always the type created by the Camel Components: https://github.com/kiegroup/kogito-runtimes/blob/master/kogito-codegen/src/main/resources/class-templates/MessageConsumerTemplate.java#L37
We should probably adjust this template in such a way that we create the consumer (and probably producer) impl based on the type of connector used. E.g. when using the camel-file component, the expected type is "GenericFile<File>".