Hi Christian,

I write the blueprint file as you suggest, but I had the same mistake.
Analizing the log service I saw:

Destroying BlueprintContainer for bundle
br.ufba.dcc.wiser.streamingmqttfuseki-osgi/0.2.0
Bundle br.ufba.dcc.wiser.streamingmqttfuseki-osgi/0.2.0 is waiting for
dependencies [(objectClass=org.apache.cxf.Bus)]

2016-07-06 3:04 GMT-03:00 cschneider [via CXF] <
[email protected]>:

> You can not mix Activator and blueprint. Either go with an Activator or
> with blueprint.
> If you do both then you end up with two instances of your class one
> created by blueprint and one by the activator.
>
> For blueprint:
>
> <reference-list id="busList" member-type="service-object"
> interface="org.apache.cxf.Bus" />
>
>
> <bean
> class="br.ufba.dcc.wiser.smartufba.mqttfuseki.MqttCxfControllerImpl">
>    <property name="busList ref="busList">
> </bean>
>
>
> Christian
>
> On 05.07.2016 21:59, Leandro Andrade wrote:
>
> > Hi Christian,
> >
> > I tried implemented what you suggested.
> > I did a file with blueprint
> > (main/resources/OSGI-INF/blueprint/blueprint.xml)
> >
> > Firstly, inside blueprint tag I put:
> >
> > <reference-list id="busList" member-type="service-object"
> > interface="org.apache.cxf.Bus" />
> >
> > After I tried:
> >
> > <reference-list id="busList" interface="org.apache.cxf.Bus">
> > <reference-listener bind-method="setBusList">
> > <bean
> class="br.ufba.dcc.wiser.smartufba.mqttfuseki.MqttCxfControllerImpl"
> > />
> > </reference-listener>
> > </reference-list>
> >
> > The both my attribute busList are null. I tried initialize it but had
> the
> > same execption that I said in first e-mail.
> >
> > Other information:
> >
> > In my bundle the Activator class I create new Thread and I instance my
> > class MqttCxfControllerImpl. like it:
> >
> > public void start(BundleContext bc) throws Exception {
> >          System.out.println("Starting the bundle MQTT Fuseki");
> >          new Thread (new Runnable()
> >          {
> >          public void run(){
> >          MqttCxfControllerImpl mf = null;
> > try {
> > mf = new MqttCxfControllerImpl(...);
> > } catch (InterruptedException e) {
> > // TODO Auto-generated catch block
> > e.printStackTrace();
> > }
> >         }}).start();
> >
> >
> > Thus, I did something wrong?
> >
> > Thanks again.
> >
> >
> > Regards,
> >
> >
> > Leandro Andrade
> >
>
> --
> Christian Schneider
> http://www.liquid-reality.de
>
> Open Source Architect
> http://www.talend.com
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://cxf.547215.n5.nabble.com/Doubt-in-implementation-of-get-all-CXF-services-in-a-karaf-bundle-tp5769879p5770102.html
> To start a new topic under cxf-user, email
> [email protected]
> To unsubscribe from cxf-user, click here
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=547216&code=bGVvanNhbmRyYWRlQGdtYWlsLmNvbXw1NDcyMTZ8LTk0Nzk5OTkwMQ==>
> .
> NAML
> <http://cxf.547215.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>
>



-- 
Leandro Andrade
http://www.leandroandrade.net




--
View this message in context: 
http://cxf.547215.n5.nabble.com/Doubt-in-implementation-of-get-all-CXF-services-in-a-karaf-bundle-tp5769879p5770171.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to