Hi Raji, rajalaxmi chandran schrieb: > > Hi, > please help.... > i am stuck with circular dependecies in osgi. i am using declarative > services. This is my situation > *Component A registers ServiceA > *Component B registers ServiceB > *Component A needs to use ServiceB > *Component B needs to use ServiceA. > > *componetA.xml file has:* > > <?xml version="1.0" encoding="UTF-8"?> > > <component name="componentA" immediate="true"> > > <implementation class="serviceAimpl.serviceAimpl"/> > > <service> > > <provide interface="serviceA.serviceA"/> > > </service> > > <reference name="SERVICEBUSE" interface="serviceB.serviceB" > bind="set" unbind=unset" cardinality="1..1" policy="dynamic"/> > > </component> > > > > *componentB.xml file has:* > > <?xml version="1.0" encoding="UTF-8"?> > > <component name="componentB"> > > <implementation class="serviceBimpl.serviceBimpl"/> > > <service> > > <provide interface="serviceB.serviceB"/> > > </service> > > <reference name="SERVICEAUSE" interface="serviceA.serviceA" > bind="set" unbind="unset" cardinality="0..1" policy="dynamic"/> > > </component> > > > > component A gets activated because of the immediate attribute being > true, but i cannot use the serviceB nor is componentB able to use > serviceA.... how do i rectify this error????????????
What do you mean by "I cannot use the serviceB" ? What is the signature of your serviceAimpl.set method ? Regards Felix > > > > how do we implement service contracts in OSGI???? > > > > please help > > thank you > > Raji > > > ------------------------------------------------------------------------ > Explore and discover exciting holidays and getaways with Yahoo! India > Travel Click here! > <http://in.rd.yahoo.com/tagline_Travel_1/*http://in.travel.yahoo.com/> > > > ------------------------------------------------------------------------ > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
