You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Jörn Kottmann <ko...@gmail.com> on 2010/01/06 11:37:16 UTC
packageScan element warning when deploying in an OSGi server
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 ?
Jörn
Re: packageScan element warning when deploying in an OSGi server
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
I have created a ticket
https://issues.apache.org/activemq/browse/CAMEL-2338
And the WARN will be removed from Camel 2.2 onwards.
On Wed, Jan 6, 2010 at 12:25 PM, Claus Ibsen <cl...@gmail.com> wrote:
> On Wed, Jan 6, 2010 at 11:37 AM, Jörn Kottmann <ko...@gmail.com> 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
>
--
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
Re: packageScan element warning when deploying in an OSGi server
Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jan 6, 2010 at 11:37 AM, Jörn Kottmann <ko...@gmail.com> 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