camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: TypeConverter not loaded from jar
Date Wed, 30 Mar 2011 06:04:40 GMT
Hi,

Camel is using the an Activator to check the bundle which has the entry 
of "META-INF\services\org\apache\camel\TypeConverter" by using the API 
of bundle.getEntry() API, That could explain why the type converter in 
your jar which is embedded in the bundle can't be found.

Willem

On 3/29/11 7:32 PM, akudinov wrote:
> Hello
>
> I have osgi bundle and want to use Type Converter:
>
>
>
> ....
> I have a TypeConverter configuration in this bundle:
> META-INF\services\org\apache\camel\TypeConverter
> with text: com.xml
>
>
> XmlContextTypeConverter defined in another jar maven module and uses as
> embded dependency.
> It has @Converter annotations
>
> With this configuration I have exception that Converter for my type not
> registered
>
> But if I use inline=true for my embded dependency and my jar is unpacked in
> my bundle --- my application work successful.
>
> This look like that camel not find TypeConverter's in jars
>
> Thank you
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/TypeConverter-not-loaded-from-jar-tp4269219p4269219.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Mime
View raw message