The blueprint looks OK to me - at least nothing jumps out at me. One question though - you have a lot more beans defined than are referenced - what are they for? Are they Camel routes? Or just supporting beans that the other routes use? I see in the log snippet that some Camel routes are starting, but I don’t know where the are coming from. Without seeing the code, it’s tough to guess what’s gong on.
And on the MDC logging - can you expand a little on that issue? I’ve been meaning to ask a question about MDC logging since it seems that only the log DSL puts the camel.* values in the MDC - the other components don’t seem to do anything. I haven’t experimented with it much to see if it’s only happening in OSGi/Karaf, or if it occurs standalone as well. Do you have an example of how it is behaving differently in Karaf? > On Nov 3, 2016, at 3:41 AM, souciance <souciance.eqdam.ras...@gmail.com> > wrote: > > One issue with this is that it also seems to mess with mdc looking in > Karaf.. > > On Wed, Nov 2, 2016 at 10:54 PM, Souciance Eqdam Rashti < > souciance.eqdam.ras...@gmail.com <mailto:souciance.eqdam.ras...@gmail.com>> > wrote: > >> Gmail is not the best formatter but here it is..you can probably put it in >> notepad++ for better highlighting.. >> >> <?xml version="1.0" encoding="UTF-8"?> >> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0 >> <http://www.osgi.org/xmlns/blueprint/v1.0.0>" >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance >> <http://www.w3.org/2001/XMLSchema-instance>" >> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint- >> <http://aries.apache.org/blueprint/xmlns/blueprint-> >> cm/v1.1.0" >> xsi:schemaLocation=" >> http://www.osgi.org/xmlns/blueprint/v1.0.0 >> <http://www.osgi.org/xmlns/blueprint/v1.0.0> >> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd >> <http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd> >> http://camel.apache.org/schema/blueprint >> <http://camel.apache.org/schema/blueprint> http://camel.apache.org/ >> <http://camel.apache.org/> >> schema/blueprint/camel-blueprint.xsd"> >> <!-- Route builder beans --> >> <bean id="DemoImport" class="demo.datasets.invoke.DemoImport"/> >> <bean id="PreProcess" class ="demo.datasets.messages.PreProcess"/> >> <bean id="DatasetMessage" class ="demo.datasets.messages. >> DatasetMessage"/> >> <bean id="DatasetMetadataMessage" class="demo.datasets.messages. >> DatasetMetadataMessage"/> >> <bean id="EventbusHeaders" class="demo.datasets.messages. >> EventbusHeaders"/> >> <bean id="DatasetConsumer" class="demo.datasets.messages. >> DatasetConsumer"/> >> <bean id="ErrorHandler" class="demo.datasets.error.ErrorHandler"/> >> <bean id ="InitiateImportMessage" class="demo.datasets.messages. >> InitiateImportMessage"/> >> <bean id="NorMarcParser" class="demo.datasets.messages.NorMarcParser"/> >> >> <cm:property-placeholder id="DemoImportId" >> persistent-id="DemoImportPersistentId" >> update-strategy="reload"> >> <cm:default-properties> >> <cm:property name="InitiateImport" value="InitiateImport"/> >> <cm:property name="ImportDatasets" value="ImportDemoDatasets"/> >> <cm:property name="DatasetsLocation" value="Demo_datasets"/> >> </cm:default-properties> >> </cm:property-placeholder> >> >> >> <camelContext id="ImportDemoDatasets" xmlns="http://camel.apache >> <http://camel.apache/>. >> org/schema/blueprint" useMDCLogging="true"> >> <routeBuilder ref="ErrorHandler"/> >> <routeBuilder ref="DemoImport"/> >> </camelContext> >> >> </blueprint> >> >> On Wed, Nov 2, 2016 at 10:28 PM, Quinn Stevenson [via Camel] < >> ml-node+s465427n5789674...@n5.nabble.com >> <mailto:ml-node+s465427n5789674...@n5.nabble.com>> wrote: >> >>> Can you share the Blueprint XML? >>> >>> >>>> On Nov 2, 2016, at 12:53 PM, souciance <[hidden email] >>> <http:///user/SendEmail.jtp?type=node&node=5789674&i=0 >>> <http://user/SendEmail.jtp?type=node&node=5789674&i=0>>> wrote: >>>> >>>> I am using camel-blueprint 2.17.0 and the blueprint simply states the >>>> routes and I use the java dsl to implement the routes. Everything is >>>> deployed to Karaf 4.0.2. >>>> >>>> However I see the same log output if I simply run it in intellij. >>>> >>>> On Wed, Nov 2, 2016 at 4:59 PM, Claus Ibsen-2 [via Camel] < >>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5789674&i=1 >>>> <http://user/SendEmail.jtp?type=node&node=5789674&i=1>>> >>> wrote: >>>> >>>>> Are you using camel-cdi, then it was doing like that for older >>> releases. >>>>> >>>>> Try with 2.18 or maybe latest 2.17.x >>>>> >>>>> On Wed, Nov 2, 2016 at 11:09 AM, souciance >>>>> <[hidden email] <http:///user/SendEmail.jtp?type=node&node=5789657&i=0 >>>>> <http://user/SendEmail.jtp?type=node&node=5789657&i=0>>> >>> >>>>> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> I have question regarding the output of Camel when routes are >>> started. >>>>>> >>>>>> I can see that it states first: >>>>>> Total 0 routes, of which 0 are started. >>>>>> Then it says the CamelContext has started.. >>>>>> Furtherdown it says the routes have started and consuming. >>>>>> >>>>>> Why is it doing that and not let me know at the end how many routes >>> have >>>>>> started? See the screenshot for an example. >>>>>> >>>>>> <http://camel.465427.n5.nabble.com/file/n5789651/Screen_ >>>>>> <http://camel.465427.n5.nabble.com/file/n5789651/Screen_> >>>>> Shot_11-02-16_at_04.png> >>>>>> >>>>>> Best >>>>>> Souciance >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> View this message in context: http://camel.465427.n5.nabble >>>>>> <http://camel.465427.n5.nabble/>. >>>>> com/Camel-zero-routes-started-upon-startup-of-context-tp5789651.html >>>>>> Sent from the Camel - Users mailing list archive at Nabble.com >>>>>> <http://nabble.com/>. >>>>> >>>>> >>>>> >>>>> -- >>>>> Claus Ibsen >>>>> ----------------- >>>>> http://davsclaus.com <http://davsclaus.com/> @davsclaus >>>>> Camel in Action 2: https://www.manning.com/ibsen2 >>>>> <https://www.manning.com/ibsen2> >>>>> >>>>> >>>>> ------------------------------ >>>>> If you reply to this email, your message will be added to the >>> discussion >>>>> below: >>>>> http://camel.465427.n5.nabble.com/Camel-zero-routes-started- >>>>> <http://camel.465427.n5.nabble.com/Camel-zero-routes-started-> >>>>> upon-startup-of-context-tp5789651p5789657.html >>>>> To start a new topic under Camel - Users, email >>>>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=5789674&i=2 >>>>> <http://user/SendEmail.jtp?type=node&node=5789674&i=2>> >>>>> To unsubscribe from Camel zero routes started upon startup of context, >>> click >>>>> here >>>>> < >>>>> . >>>>> NAML >>>>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp? >>> macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml& >>> base=nabble.naml.namespaces.BasicNamespace-nabble.view.web. >>> template.NabbleNamespace-nabble.view.web.template.NodeNamesp >>> ace&breadcrumbs=notify_subscribers%21nabble%3Aemail. >>> naml-instant_emails%21nabble%3Aemail.naml-send_instant_ >>> email%21nabble%3Aemail.naml> >>>>> >>>> >>>> >>>> >>>> >>>> -- >>>> View this message in context: http://camel.465427.n5.nabble. >>> com/Camel-zero-routes-started-upon-startup-of-context-tp5789 >>> 651p5789667.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>> >>> >>> >>> ------------------------------ >>> If you reply to this email, your message will be added to the discussion >>> below: >>> http://camel.465427.n5.nabble.com/Camel-zero-routes-started- >>> <http://camel.465427.n5.nabble.com/Camel-zero-routes-started-> >>> upon-startup-of-context-tp5789651p5789674.html >>> To start a new topic under Camel - Users, email >>> ml-node+s465427n465428...@n5.nabble.com >>> <mailto:ml-node+s465427n465428...@n5.nabble.com> >>> To unsubscribe from Camel zero routes started upon startup of context, click >>> here >>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5789651&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NTc4OTY1MXwxNTMyOTExNjU2 >>> >>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5789651&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NTc4OTY1MXwxNTMyOTExNjU2>> >>> . >>> NAML >>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml >>> >>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>> >>> >> >> > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-zero-routes-started-upon-startup-of-context-tp5789651p5789689.html > > <http://camel.465427.n5.nabble.com/Camel-zero-routes-started-upon-startup-of-context-tp5789651p5789689.html> > Sent from the Camel - Users mailing list archive at Nabble.com > <http://nabble.com/>.