Re: Running Camel in a Karaf OSGi container

2018-11-20 Thread Ranx
The Camel Java DSL works fine with Blueprint in Karaf. One simply bootstraps the RouteBuilder in Blueprint and then references in the Camel context of the Blueprint file. I think the problem is that documentation is inadequate. And, as Camel, Karaf, etc. changed over time documentation became

Re: Running Camel in a Karaf OSGi container

2018-11-12 Thread Ranx
Paul, I agree. I've used Blueprint for a long time and it is a thorny with Camel. I've limited my use of Blueprint these days to 1) configuration, 2) service management, and 3) bootstrap. If one keeps in minimal like that Blueprint is fine. But I've gone into a lot of different clients where they

Re: Running Camel in a Karaf OSGi container

2018-10-18 Thread Ranx
Absolutely, do use the Camel Java DSL even when you bootstrap with Blueprint. Write unit tests using CamelTestSupport and only sparingly use the CamelBlueprintTestSupport. Avoid Processors/Exchanges and use plain pojo handlers instead. Camel uses reflection on any bean it finds in the path and

Re: Running Camel in a Karaf OSGi container

2018-10-18 Thread John F. Berry
Thank you Tim for the affirmation,  Apache Camel, at least, touts that you can tie in so many technologies for just about any connection technology, any payload, and transform to another, all by utilizing the massive collection of work done by others, instead of hand coding it yourself.

Re: Running Camel in a Karaf OSGi container

2018-10-18 Thread Achim Nierbeck
Hi, afaik you can also use declarative Services as starting point for your Camel routes/rotue-builders http://camel.apache.org/camel-and-scr.html Therefore I'd think blueprint isn't mandatory. Also it's not mandatory to start with a blueprint dsl, use java instead just let your route builder be

Re: Running Camel in a Karaf OSGi container

2018-10-18 Thread Tim Ward
This is an argument that I hear a lot. I’m not a Camel expert, but it really sounds as though the DSL needs some work. The whole point of a DSL is that by being domain specific it is supposed to be natural and easy. Instead it sounds as though it is forcing people into using Blueprint despite

Re: Running Camel in a Karaf OSGi container

2018-10-17 Thread John F. Berry
Thank you.. I was thinking of abandoning the Java DSL and ultimately going this way, given my lack of success of "dumping it" into an OSGi container of some sort.  The rest of my shop, though, are not blueprint DSL, Camel or Apache product savvy, so the learning curve for my coworkers will be

Re: Running Camel in a Karaf OSGi container

2018-10-17 Thread Jean-Baptiste Onofré
You can also directly use the Camel Blueprint DSL directly, just putting your route in OSGI-INF/blueprint/route.xml: http://camel.apache.org/schema/blueprint;> ...

Re: Running Camel in a Karaf OSGi container

2018-10-17 Thread Ranx
You'll want to use the bundle plugin and create a blueprint.xml to bootstrap your Camel Java DSL. I use the Camel Java DSL all the time in Blueprint for a variety of reasons (testing is easier as the RouteBuilders exist without the camel context). I’m not sure why your Camel blueprint archetype

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread John F. Berry
ponentDefinitionException: > Unable to instantiate components > > > From: Francois Papon > To: user@karaf.apache.org > Sent: Tuesday, October 16, 2018 3:18 PM > Subject: Re: Running Camel in a Karaf OSGi container > > > > Hi John, > Have you install the ca

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread John F. Berry
; > > > From: Kerry > To: user@karaf.apache.org > Sent: Tuesday, October 16, 2018 3:03 PM > Subject: Re: Running Camel in a Karaf OSGi container > > > > Hi John, > Are you able to share any of your code or an example project? also are y

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread Jean-Baptiste Onofré
r blueprint bundle >org.apache.camel.camel-blueprint/2.22.1 >org.osgi.service.blueprint.container.ComponentDefinitionException: >Unable to instantiate components > > > >From: Francois Papon >To: user@karaf.apache.org >Sent: Tuesday, October 16, 2018 3:18 PM &

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread Kerry
16, 2018 3:03 PM > Subject: Re: Running Camel in a Karaf OSGi container > > > > Hi John, > Are you able to share any of your code or an example project? also are you > familiar already with OSGi or is it only Karaf that you are new to? > thanks > Kerry > > > On

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread Francois Papon
ionException: Unable to > instantiate components > > > > From: Francois Papon > To: user@karaf.apache.org > Sent: Tuesday, October 16, 2018 3:18 PM > Subject: Re: Running Camel in a Karaf OSGi container > > > > Hi John, > Have you insta

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread John F. Berry
y, October 16, 2018 3:18 PM Subject: Re: Running Camel in a Karaf OSGi container Hi John, Have you install the camel feature in Karaf ? In a Karaf shell : karaf@root()> feature:repo-add camel karaf@root()> feature:install camel If your are using blueprint with Karaf 4.2.x : karaf@root()&

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread John F. Berry
igurations to try and flip it over to something Karaf can make heads or tails of. Thanks! From: Kerry To: user@karaf.apache.org Sent: Tuesday, October 16, 2018 3:03 PM Subject: Re: Running Camel in a Karaf OSGi container Hi John, Are you able to share any of

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread Francois Papon
Hi John, Have you install the camel feature in Karaf ? In a Karaf shell : karaf@root()> feature:repo-add camel karaf@root()> feature:install camel If your are using blueprint with Karaf 4.2.x : karaf@root()> feature:install aries-blueprint Then just drop your bundle into the "deploy"

Re: Running Camel in a Karaf OSGi container

2018-10-16 Thread Kerry
Hi John, Are you able to share any of your code or an example project? also are you familiar already with OSGi or is it only Karaf that you are new to? thanks Kerry On 16/10/18 19:54, John F. Berry wrote: > New user to Karaf due to the fact that my development work in Apache Camel is >

Running Camel in a Karaf OSGi container

2018-10-16 Thread John F. Berry
New user to Karaf due to the fact that my development work in Apache Camel is wanted by people to be installed on a Windows server and to be installed as a service.  This led me to the Karaf product.I've asked the Camel users forum about migration steps, but now I think this is more of a Karaf