I would post this on the Karaf forum and hear what they say. Probably more
people there using OSGI services.

On Wed, Feb 22, 2017 at 8:46 AM, alexey-s [via Camel] <
ml-node+s465427n5794231...@n5.nabble.com> wrote:

> Command context-list extend class CamelControllerImpl.
> This class find OSGi services
>
> ServiceReference<?>[] references = 
> bundleContext.getServiceReferences(CamelContext.class.getName(), null);
>
> Used OsgiDefaultCamelContext class is not a service. Why do his service?
> Where is it written that it is necessary to register it as a service?
> Where can I see an example of how this is done?
>
> http://camel.apache.org/tutorial-osgi-camel-part1.html
> Step 4 : Create the spring configuration files
>
> What for? I deliberately left from Spring & Blueprint. I prefer OSGi SCR.
> When there is a stop component, all dependent components are stopped. When
> the lift component dependent components rising.
> In Spring & Blueprint uses proxy. It does not consider that the component
> is not available. Breaking to him and takes off in the most unexpected
> place.
> SCR is predicted in this regard.
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Stop-component-direct-vm-
> from-another-OSGI-camelContext-tp5794194p5794231.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Stop-component-direct-vm-from-another-OSGI-camelContext-tp5794194p5794232.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to