Re: Deploy custom Camel code on Apache Karaf

2019-10-14 Thread Jean-Baptiste Onofré
Cool ! Thanks for the update. Don't hesitate to ping if you need help. Regards JB On 14/10/2019 08:43, Kirti Arora wrote: > Hi Jean, > > Thanks a lot, It worked with Activator Bundle. > > Regards, > kirti Arora > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend -

Re: Deploy custom Camel code on Apache Karaf

2019-10-14 Thread Kirti Arora
Hi Jean, Thanks a lot, It worked with Activator Bundle. Regards, kirti Arora

Re: Deploy custom Camel code on Apache Karaf

2019-10-07 Thread Jean-Baptiste Onofré
Hi, If you don't run in Karaf, that won't work because you are in two different JVM: the one executing your Main, the one for Karaf. direct endpoints are visible only in the same JVM and for direct it's in the same CamelContext ! If you want to communicate between two routes from different camel

Re: Deploy custom Camel code on Apache Karaf

2019-10-07 Thread Kirti Arora
Hi, I'm trying to expose endpoint from the main() method using producerTemplate.requestBody(). I have two classes; one is main from which I'm requesting an endpoint and another one(SimpleRouteBuilder) to configure the route. public class MainClass { public static void main(String args[]) {

Re: Deploy custom Camel code on Apache Karaf

2019-10-07 Thread Jean-Baptiste Onofré
Hi, Your route looks weird to me. What's the direct:start trigger ? What do you do with the reply ? For instance, a valid testing route would be: from("timer:foo?period=5000").to("...").log("Received ${body}") Or at least expose an endpoint as a bridge (as we do in the Karaf example).

Re: Deploy custom Camel code on Apache Karaf

2019-10-06 Thread Kirti Arora
Hi Jean and Francois, Thanks for the reply :) I have already seen the examples and successfully execute the one given in /apache-karaf/examples/karaf-camel-example/karaf-camel-example-java directory. But when I'm trying to put my own camel code, I'm not able to call the route endpoint. For

Re: Deploy custom Camel code on Apache Karaf

2019-10-05 Thread Jean-Baptiste Onofré
Hi, you can take a look on the examples here: https://github.com/apache/karaf/tree/master/examples/karaf-camel-example You have an example using blueprint DSL, an example using Java DSL. I'm adding SCR package. If you have any question, please let me know. Regards JB On 04/10/2019 14:22,

Re: Deploy custom Camel code on Apache Karaf

2019-10-04 Thread Francois Papon
Hi, You have some examples here: https://github.com/apache/karaf/tree/master/examples/karaf-camel-example regards, François fpa...@apache.org Le 04/10/2019 à 14:22, Kirti Arora a écrit : > Hi, > > I'm trying to deploy my camel code(Java) on Apache Karaf. I had put my > camel code bundle to

Deploy custom Camel code on Apache Karaf

2019-10-04 Thread Kirti Arora
Hi, I'm trying to deploy my camel code(Java) on Apache Karaf. I had put my camel code bundle to deploy directory of Karaf but not able to find routes available in the code, also not able to request the endpoints. Can someone please guide me, how can I deploy camel code on Apache Karaf? It would