camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Problem with Camel,osgi-compendium and mvn camel:run
Date Thu, 03 May 2012 07:52:13 GMT
Camel 2.10 will support running OSGi blueprint XML files using the mvn
camel:run plugin.
And the OSGi config admin should be supported as well (well as far as
we have seen/tested).



On Wed, May 2, 2012 at 6:45 PM, ychawla <premiergeneration@yahoo.com> wrote:
> Hi Dinesh,
> You will see a similar error if you try to run Camel JUnit tests and are
> using OSGi for your properties file.  To make this slightly less painful,
> you can put your PropertyPlaceHolder in its own file.  For example, this
> file can be called properties-context.xml
>
> <beans xmlns="http://www.springframework.org/schema/beans" ...>
>
>    <osgix:cm-properties id="cfg-properties" persistent-id="cfg.id"/>
>    <ctx:property-placeholder properties-ref="cfg-properties"/>
>
> </beans>
>
> Then import this file in your camel-context.xml:
>
>        <import resource="properties-context.xml"/>
>
> Then under src/test/resources/META-INF/spring add a different
> properties-context.xml:
>
> <beans xmlns="http://www.springframework.org/schema/beans" ...>
>        <ctx:property-placeholder location="file:///${conf.home}/my.cfg"/>
> </beans>
>
> This way you can set this up once and then write J-Unit tests without having
> to change anything.
>
> This doesn't help for camel:run.  For this you can either set up ServiceMix
> debugging:
> http://www.ithoughts.de/servicemix-4-2-debugging-and-more-gotchas
>
> Or you can just comment out the OSGi properties and replace it with the
> spring file placeholder :-)
>
> -Yogesh
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Problem-with-Camel-osgi-compendium-and-mvn-camel-run-tp4598536p5681080.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message