But I cannot understand that, A service defined with a interface. The service indicate to this interface.Is it ok.
Why is used "service.exported.interfaces" properties. I think There are alot of service/interface defined in same configuration and we will choise that which one exported.Is it true? Thank you for your responce. ________________________________ From: Sergey Beryozkin <[email protected]> To: [email protected] Cc: Koray Duman <[email protected]> Sent: Wednesday, September 26, 2012 3:04 PM Subject: Re: Multiple Servises Registration On 26/09/12 12:06, Koray Duman wrote: > I will explain with in a java program. > > { > > Dictionary props = new Hashtable(); >props.put("service.exported.interfaces", "*"); >props.put("service.exported.configs", "org.apache.cxf.ws"); >props.put("org.apache.cxf.ws.address", "http://localhost:9090/greeter"); >ServiceRegistration rdb = bc.registerService(DBService.class.getName(), new >DBServiceImpl(), props); > > ServiceRegistration rOther = > bc.registerService(OtherService.class.getName(), new OtherServiceImpl(), > props); } > > Is this code ok.? Both services will work on same configuration. Except that an address has to be different per every endpoint > I want to make it in configuration XML file. Not sure about it, given that the addresses have to be unique, so reusing the properties at the XML level seems problematic Sergey > > Thank you > > > > > > > ________________________________ > From: Sergey Beryozkin<[email protected]> > To: [email protected] > Sent: Wednesday, September 26, 2012 12:23 PM > Subject: Re: Multiple Servises Registration > > Hi, > On 26/09/12 08:33, Koray Duman wrote: >> >> We are using Spring DM and CXF-DOSGI on osgi framework. We can register the >> service this like. It is work >> >> >> <osgi:reference id="dbService" interface="com.frm.DBService" /> >> >> <osgi:service interface="com.frm.DBService"> >> <osgi:service-properties> >> <entry key="service.exported.interfaces" value="*" /> >> <entry key="service.exported.configs" >>value="org.apache.cxf.rs" /> >> <entry key="service.exported.intents" value="HTTP" /> >> <entry key="org.apache.cxf.rs.databinding" value="jaxb" /> >> </osgi:service-properties> >> <ref bean="dbService" /> >> </osgi:service> >> >> >> We want to register new one. How can I register new one >> > Repeat the above for another interface, or do you mean something else ? > > Cheers, Sergey >> Thank You >>
