I appreciate it JB, Will all functionality be available even when looking up via JMX?
/Bengt 2012/4/23 Jean-Baptiste Onofré <[email protected]> > Hi Bengt, > > JMX is only used for statistic. The purpose is to be able to display and > manage routes without the JMX layer (without the management feature > installed). > > However, we can have a dual handling, with an option to choose to lookup > by OSGi services or JMX. > > I will implement an enhancement on trunk for that. > > Regards > JB > > > On 04/23/2012 01:52 PM, Bengt Rodehav wrote: > >> OK - that explains it. I have no camel context published as OSGi service. >> Is this something I should do in order to "integrate" with the Camel Karaf >> commands? >> >> Why isn't JMX used? (It seems to work fine under Karaf) What are the extra >> benefits from *not* using JMX? >> >> >> If I publish all my camel contexts as OSGi services, will they then be >> visible to the Karaf commands? >> >> /Bengt >> >> 2012/4/23 Jean-Baptiste Onofré<[email protected]> >> >> Hi Bengt, >>> >>> I'm gonna take a look but the Karaf commands are based on Camel Context >>> registered as OSGi service. Could you take a look about the services >>> available (using ls command in Karaf shell). >>> >>> Regards >>> JB >>> >>> >>> On 04/23/2012 11:01 AM, Bengt Rodehav wrote: >>> >>> Hello JB, >>>> >>>> I use Java DSL. I create multiple camel contexts with code like this: >>>> >>>> *<Recieve the bundle context from iPOJO constructor...>** >>>> >>>> **CamelContextFactory contextFactory = new CamelContextFactory(); >>>>> **contextFactory.****setBundleContext(****theBundleContext); >>>>> **CamelContext context = contextFactory.createContext()****;* >>>>> >>>>> >>>> >>>> The contexts and routes work perfectly well and I can also access them >>>> via >>>> JMX from JConsole but I cannot see them using the Karaf commands. >>>> >>>> /Bengt >>>> >>>> 2012/4/23 Jean-Baptiste Onofré<[email protected]> >>>> >>>> Hi Bengt, >>>> >>>>> >>>>> which DSL do you use ? >>>>> Do you use an "OSGi" complient camel context if you do it >>>>> programmatically >>>>> ? >>>>> >>>>> Regards >>>>> JB >>>>> >>>>> >>>>> On 04/23/2012 10:27 AM, Bengt Rodehav wrote: >>>>> >>>>> I'm using Camel 2.9.1 and Karaf 2.2.5. >>>>> >>>>>> >>>>>> I have several Camel contexts and several routes running. Using >>>>>> JConsole I >>>>>> can see the contexts, routes and other JMX information. >>>>>> >>>>>> However, if I use the Camel commands from within the Karaf console I >>>>>> see >>>>>> nothing. E g the command "camel:context-list" shows nothing. >>>>>> >>>>>> Is this a bug or am I doing something wrong? >>>>>> >>>>>> /Bengt >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>> Jean-Baptiste Onofré >>>>> [email protected] >>>>> http://blog.nanthrax.net >>>>> Talend - http://www.talend.com >>>>> >>>>> >>>>> >>>> -- >>> Jean-Baptiste Onofré >>> [email protected] >>> http://blog.nanthrax.net >>> Talend - http://www.talend.com >>> >>> >> > -- > Jean-Baptiste Onofré > [email protected] > http://blog.nanthrax.net > Talend - http://www.talend.com >
