On Wed, Jan 6, 2010 at 11:37 AM, Jörn Kottmann <[email protected]> wrote: > Hello, > > we are running our camel routes (camel 2.0.0) in an OSGi server, > each time a route is deployed we get the following > warning: > > [2010-01-06 11:32:35.494] server-dm-7 > org.apache.camel.spring.CamelContextFactoryBean.unknown W Using a packages > element to specify packages to search has been deprecated. Please use a > packageScan element instead. > > And here is the declaration in the camel-context.xml: > > <camelContext xmlns="http://camel.apache.org/schema/osgi"> > <camel:package>dk.infopaq.messaging.xxx</camel:package> > </camelContext> > > How must it be to avoid the warning ? >
Yeah actually I think we should remove that warning. Camel offers 2 kind of package definitions. There is a more advanced which can use ANT style filtering so you can better scan selected packages. See more here http://camel.apache.org/spring.html > Jörn > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
