A good starting point is the old component
https://github.com/apache/camel/tree/camel-3.22.1/components/camel-cdi
which is an information gold mine for camel+CDI
On Wed, Feb 14, 2024 at 2:12 PM Romain Manni-Bucau
wrote:
> Hi
>
> if it helps:
>
> @ApplicationScoped
> public class CamelLifecycle
Hi
if it helps:
@ApplicationScoped
public class CamelLifecycle {
void onStart(@Observes @Initialized(ApplicationScoped.class) final
object start) { /* do init camel, new DefaultCamelContext() etc */ }
@PreDestroy void destroy() { /* destroy/stop the context */ }
}
Then it depends the
Hi
Try to search for something like cdi startup listener
There is some @Oberservation annotation where you can specify on startup /
shutdown, and have CDI invoke your methods.
On Wed, Feb 14, 2024 at 11:25 AM Jad Anouti wrote:
> Interesting, I have 2 followup points from that.
>
> Point 1: I
Interesting, I have 2 followup points from that.
Point 1: I was watching a presentation video from my senior developer on
the product I'm working on which is using camel. And he was saying that
camel would natively support CDI In the newer version, so the need for the
camel-cdi dependency would
Hi
camel-cdi is no longer supported and there is no plan.
You can with CDI have some way of startup listeners where you can create
Camel and load routes and whatnot, you may need.
On Wed, Feb 14, 2024 at 11:11 AM Jad Anouti wrote:
> Hello
>
> I have a question regarding the deprecation of
Hello
I have a question regarding the deprecation of camel CDI
It seems that with the release of Camel 4 the dependency for Camel CDI has
been removed.
I was wondering if that means that i will no longer be able to use Camel in
my Weld CDI application (Weld being a reference implementation of