Re: Camel main class in osgi bundle

2014-01-21 Thread alexey-s
Consider an example. Example project in the attachment file. For reasons of clarity, the project no services and no Apache Camel. Build project: Note the last warning. Remove method getB. Build project. Last warning not exists. myapp.tar.gz

Re: Camel main class in osgi bundle

2014-01-21 Thread Christian Schneider
I am sorry but I have not understood your example. Coming back to your rules: > 1. Blueprint requires the presence of all the objects (beans) in the public OSGi part. You can create blueprint beans with a class from a private package. Why should that not work? > 2. These objects can create

Re: Camel main class in osgi bundle

2014-01-20 Thread alexey-s
Hi, Christian My sample code: blueprint error code: Move class A from package myapp to package myapp.imp.camel.processes Create Java DSL RouteBuilder -- View this message in context: http://camel.465427.n5.nabble.com/Camel-main-class-in-osgi-bundle-tp5746113p5746246.html Sent from the

Re: Camel main class in osgi bundle

2014-01-19 Thread Christian Schneider
I always use blueprint together with the Java DSL. I never experienced the limitations you described. Are you sure about that? Christian On 18.01.2014 21:52, alexey-s wrote: 1. Blueprint requires the presence of all the objects (beans) in the public OSGi part. 2. These objects can create objec

RE: Camel main class in osgi bundle

2014-01-18 Thread alexey-s
1. Blueprint requires the presence of all the objects (beans) in the public OSGi part. 2. These objects can create objects from the private OSGi part. 3. Objects must not contain public methods taking or transmitting other objects from the private part. The last point is very difficult to under

RE: Camel main class in osgi bundle

2014-01-17 Thread Siano, Stephan
stantiating a registry. > > Best regards > Stephan > > -Original Message- > From: Muhzin [mailto:rmuh...@gmail.com] > Sent: Freitag, 17. Januar 2014 10:25 > To: users@camel.apache.org > Subject: Re: Camel main class in osgi bundle > > Thanks for the reply.

Re: Camel main class in osgi bundle

2014-01-17 Thread Muhzin
ry. > > Best regards > Stephan > > -Original Message- > From: Muhzin [mailto:rmuh...@gmail.com] > Sent: Freitag, 17. Januar 2014 10:25 > To: users@camel.apache.org > Subject: Re: Camel main class in osgi bundle > > Thanks for the reply. I'm trying to convert my c

RE: Camel main class in osgi bundle

2014-01-17 Thread Siano, Stephan
it without explicitly instantiating a registry. Best regards Stephan -Original Message- From: Muhzin [mailto:rmuh...@gmail.com] Sent: Freitag, 17. Januar 2014 10:25 To: users@camel.apache.org Subject: Re: Camel main class in osgi bundle Thanks for the reply. I'm trying to conve

Re: Camel main class in osgi bundle

2014-01-17 Thread Claus Ibsen
Hi See this page how to use java routes in xml , section = using java code (same style for blueprint as for spring) http://camel.apache.org/spring On Fri, Jan 17, 2014 at 10:25 AM, Muhzin wrote: > Thanks for the reply. I'm trying to convert my camel configuration from > java DSL to blueprint

Re: Camel main class in osgi bundle

2014-01-17 Thread Muhzin
Thanks for the reply. I'm trying to convert my camel configuration from java DSL to blueprint and come across some hurdles. My route config looks something like SimpleRegistry registry = new SimpleRegistry(); registry.put("sqsClient", sqsClient); CamelContext context = new DefaultCamelContext(reg

Re: Camel main class in osgi bundle

2014-01-16 Thread Claus Ibsen
Hi Using a spring or blueprint xml file to bootstrap Camel is often much easier, as it does all the OSGi lifecycle and other pieces you otherwise must do yourself. If you dont want to do that, then you need to use an osgi activator to call some code, that creates a OsgiCamelContext and setup a bu