I assume you printed the toString of the injected instance.
PingPongDataBroker  extends from ForwardingObject which forwards toString
to the delegate which is the ConcurrentDOMDataBroker. Unfortunately this
hides the fact that it's actually the PingPongDataBroker. To confirm it
actually is, I implemented toString in PingPongDataBroker. So it does work
correctly.

Also looking at the DOMDataBroker services in karaf, you can see what
you're bundle is using. Eg below, I changed
the org.opendaylight.controller.samples.clustering-it-provider bundle to
import the DOMDataBroker <service> with odl:type="pingpong":

opendaylight-user@root>service:list DOMDataBroker
[org.opendaylight.controller.md.sal.dom.api.DOMDataBroker]
----------------------------------------------------------
 osgi.service.blueprint.compname = domPingPongDataBroker
 type = pingpong
 service.id = 794
Provided by :
 org.opendaylight.controller.sal-broker-impl (135)
Used by:
 org.opendaylight.controller.sal-binding-broker-impl (137)
 org.opendaylight.controller.samples.clustering-it-provider (254)



On Tue, Aug 23, 2016 at 6:13 AM, Robert Varga <n...@hq.sk> wrote:

> On 08/23/2016 11:24 AM, Martin Dindoffer wrote:
> > Hi,
> >
> >  I am trying to migrate Topoprocessing project to Blueprint. We need the
> > /org.opendaylight.controller.md.sal.dom.broker.impl.PingPongDataBroker/
> > class, however when using:
> >
> > <reference id="dataBrokerImpl"
> >     interface="org.opendaylight.controller.md.sal.dom.api.DOMDataBroker"
> >     odl:type="pingpong" />
> >
> > blueprint injects the
> > /org.opendaylight.controller.cluster.databroker.ConcurrentDOMDataBroker
> > /
> >
> > /
> > /
> >
> > This looks like a bug in Controller, can someone please confirm?
>
> Looks like a bug to me. Can you file an issue in bugzilla, please? This
> would be a release blocker...
>
> Bye,
> Robert
>
>
> _______________________________________________
> controller-dev mailing list
> controller-dev@lists.opendaylight.org
> https://lists.opendaylight.org/mailman/listinfo/controller-dev
>
>
_______________________________________________
controller-dev mailing list
controller-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/controller-dev

Reply via email to