camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From NagendraCorpus <marimekala.nagen...@gmail.com>
Subject Re: Camel components not working inside felix
Date Mon, 08 Feb 2010 11:48:51 GMT

Hi Williem,

I want to use with spring dm osgi with camel,so if we use spring dm in osgi
, i think bundlecontext not required to write .

Thanks,
Nagendra


NagendraCorpus wrote:
> 
> 
> Hi williem,
> Very thanks for replay ,  can you please send some sample code for camel
> sql osgi routing inside felix 
> Thanks,
> Nagendra 
> 
> 
> willem.jiang wrote:
>> 
>> Hi,
>> 
>> You can't use the DefaultCamelContext in the OSGi platform,
>> As the DefaultCamelContext's class resolver and FactoryFinder can't work 
>> rightly within OSGi platform.
>> 
>> You need to use the CamelContextFactory[1] in the camel-osgi bundle to 
>> create a CamelContext after setting the bundle context.
>> 
>> BTW, Spring-dm will setBundleContext if the bean class implements the 
>> BundleContextAware interface.
>> 
>> [1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-osgi/src/main/java/org/apache/camel/osgi/CamelContextFactory.java
>> 
>> Willem
>> 
>> NagendraCorpus wrote:
>>> 
>>> Hi williem  ,
>>> 
>>> Thanks for replay,i am using spring configuration to start bundle , i am
>>> sending whole application zip , please check and let me know i am doing
>>> any
>>> thing wrong.
>>> 
>>> Thanks,
>>> Nagendra.M
>>> http://old.nabble.com/file/p27498173/camel-javaDSL.zip camel-javaDSL.zip 
>>> 
>>> willem.jiang wrote:
>>>> Hi,
>>>>
>>>> How can your CamelRoute.start be called ?
>>>> I don't find there are any bundle activator in the MANIFEST.MF/
>>>> Can you try to use spring configuration to start up the camelcontext?
>>>> Please take a look at the camel-example-osgi that I showed to you.
>>>>
>>>> Willem
>>>> NagendraCorpus wrote:
>>>>> Hi williem,
>>>>>
>>>>> I am not using spring DSL , i am using java DSL, i am attaching my
>>>>> routing
>>>>> java file and manifest , please see and 
>>>>> http://old.nabble.com/file/p27497621/MANIFEST.MF MANIFEST.MF 
>>>>> http://old.nabble.com/file/p27497621/CamelRoute.java CamelRoute.java
>>>>> let
>>>>> me
>>>>> know any thing wrong i am doing .
>>>>>
>>>>> Thanks 
>>>>> Nagendra.M
>>>>>
>>>>>
>>>>> willem.jiang wrote:
>>>>>> Did you put the spring configuration which holds the camelcontext
>>>>>> into 
>>>>>> the bundle/META-INF/spring ? Or use the bundle activator the start
up 
>>>>>> the camel context ?
>>>>>>
>>>>>> If not, please take a look at the camel-example-osgi[1].
>>>>>> [1]https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-osgi
>>>>>>
>>>>>> Willem
>>>>>>
>>>>>> S. Ali Tokmen wrote:
>>>>>>> Hello
>>>>>>>
>>>>>>> How did you deploy your route? As part of a bundle?
>>>>>>>
>>>>>>> Do you have any route startup messages on the Felix console?
>>>>>>>
>>>>>>> Cheers
>>>>>>>
>>>>>>> S. Ali Tokmen
>>>>>>> savas-ali.tokmen@bull.net
>>>>>>>
>>>>>>> Office: +33 4 76 29 76 19
>>>>>>> GSM:    +33 66 43 00 555
>>>>>>>
>>>>>>> Bull, Architect of an Open World TM
>>>>>>> http://www.bull.com
>>>>>>>
>>>>>>>
>>>>>>> Le 08/02/2010 10:37, NagendraCorpus a écrit :
>>>>>>>> Hi willem thanks for reply ,i am not getting any error inside
felix
>>>>>>>> it 
>>>>>>>> not
>>>>>>>> showing any errors  ,but sql route is not executing .
>>>>>>>>    0] [Active     ] [    0] System Bundle (1.8.0)
>>>>>>>>    1] [Active     ] [    1] Apache Felix Shell Service (1.2.0)
>>>>>>>>    2] [Active     ] [    1] Apache Felix Shell TUI (1.2.0)
>>>>>>>>    3] [Active     ] [    1] Apache Felix Bundle Repository
(1.4.0)
>>>>>>>>    4] [Active     ] [    1] aopalliance.osgi (1.0.0.SNAPSHOT)
>>>>>>>>    5] [Active     ] [    1] jcl104-over-slf4j (1.4.3)
>>>>>>>>    6] [Active     ] [    1] log4j.osgi (1.2.15.SNAPSHOT)
>>>>>>>>    7] [Active     ] [    1] Apache Felix (1.0.1)
>>>>>>>>    8] [Active     ] [    1] slf4j-api (1.4.3)
>>>>>>>>    9] [Active     ] [    1] slf4j-log4j12 (1.4.3)
>>>>>>>>   22] [Active     ] [    1] spring-osgi-core (1.0.2)
>>>>>>>>   23] [Active     ] [    1] spring-osgi-io (1.0.2)
>>>>>>>>   24] [Active     ] [    1] camel-core (2.1.0)
>>>>>>>>   25] [Active     ] [    1] Commons Management (1.0)
>>>>>>>>   37] [Active     ] [    1] spring-osgi-extender (1.0.2)
>>>>>>>>   51] [Active     ] [    1] camel-sql (2.1.0)
>>>>>>>>   52] [Active     ] [    1] camel-jdbc (2.1.0)
>>>>>>>>   56] [Active     ] [    1] spring-aop (2.5.1)
>>>>>>>>   57] [Active     ] [    1] spring-beans (2.5.1)
>>>>>>>>   58] [Active     ] [    1] spring-context (2.5.1)
>>>>>>>>   59] [Active     ] [    1] spring-core (2.5.1)
>>>>>>>>   72] [Active     ] [    1] spring (2.5.0)
>>>>>>>>   73] [Active     ] [    1] Jdbc Plug-in (1.0.0)
>>>>>>>>   78] [Active     ] [    1] camel-csv (2.1.0)
>>>>>>>>   79] [Active     ] [    1] Apache Commons CSV
>>>>>>>> (1.0.0.BUILD-20080106)
>>>>>>>>
>>>>>>>> these are the bundles are deployed inside felix , please
let me
>>>>>>>> know
>>>>>>>> any
>>>>>>>> wrong i did .
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> willem.jiang wrote:
>>>>>>>>   
>>>>>>>>> What kind of error did you get ?
>>>>>>>>> Can you past the stack trace?
>>>>>>>>>
>>>>>>>>> Willem
>>>>>>>>>
>>>>>>>>> NagendraCorpus wrote:
>>>>>>>>>     
>>>>>>>>>> hi
>>>>>>>>>> I am using camel 2.1.0 and felix is 1.8.0 and spring
dm is 2.5.1
>>>>>>>>>> ,
>>>>>>>>>> i am trying to use camel sql component in camel routing
with
>>>>>>>>>> felix , 
>>>>>>>>>> but
>>>>>>>>>> sql
>>>>>>>>>> component routing is not working inside felix . file
and bean 
>>>>>>>>>> components
>>>>>>>>>> are
>>>>>>>>>> working but remaining camel components are not working
,inorder
>>>>>>>>>> to
>>>>>>>>>> work
>>>>>>>>>> camel sql routing ,which bundles i have to deploy
inside felix
>>>>>>>>>> ,please
>>>>>>>>>> reply
>>>>>>>>>> soon .
>>>>>>>>>>
>>>>>>>>>> Thanks and Regards
>>>>>>>>>> M.Nagendra
>>>>>>>>>>        
>>>>>>>>>      
>>>>>>>>    
>>>>>>
>>>>
>>>>
>>> 
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Camel-components-not-working-inside-felix-tp27497195p27498697.html
Sent from the Camel Development mailing list archive at Nabble.com.


Mime
View raw message