cancel
Showing results for 
Search instead for 
Did you mean: 

Custom CamelBehavior class in OSGi

suhaig
Champ in-the-making
Champ in-the-making
Hi,

because of ACT-2143 I tried to write a CamelBehavior subclass and override the
setAppropriateCamelContext
method to load the Camel context from a Blueprint Container. But the
createCamelActivityBehavior
method in
DefaultActivityBehaviorFactory
wants to load my class using
Class.forName()
which is not working in an OSGi environment.
Do you plan to support this use case? Or do you have any ideas to solve this issue?

Regards
Gábor
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi Gábor,

Would it be possible to define your custom class as a delegate expression instead? So you would not be using a camel task but a service task and implement the custom Camel logic in there.

Best regards,