PS: using an EJB - singleton startup - to start camel context should work
too and injections in EJB should work since they have their own jndi tree.

Le 30 juil. 2016 19:41, "Romain Manni-Bucau" <[email protected]> a
écrit :

> Thinking to it there is a way to rely on jta when cdi starts. OpenJPA does
> it for years with this bit of logic:
> https://github.com/apache/openjpa/blob/a453aa9f462cccb99f028426298e885c25b0cee2/openjpa-kernel/src/main/java/org/apache/openjpa/ee/AutomaticManagedRuntime.java
>
> Very doable with spring too.
>
> Le 30 juil. 2016 17:40, "dimas" <[email protected]> a écrit :
>
>> I looks like the CDI initialization is triggered by Camel JPA component.
>> How
>> to make Camel to initialize lazily?
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Camel-JPA-JTA-Transaction-TomEE-tp5785642p5785707.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>

Reply via email to