Hi,

But I want to new one service register.One of the them DBService (registered) 
other service LPService.(I want to register)


I think <osgi:service-properties > will be common both of them. Is it normal. 
Which change can I make in .xml file


<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>

Thank you



________________________________
 From: Freeman Fang <[email protected]>
To: [email protected]; Koray Duman <[email protected]> 
Sent: Wednesday, September 26, 2012 10:50 AM
Subject: Re: Multiple Servises Registration 
 

Hi,

You can expose second com.frm.DBService with different service properties, and 
when you reference it, you can specify the service properties as a filter.

Freeman

-------------
Freeman Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: http://weibo.com/u/1473905042 

On 2012-9-26, at 下午3: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
>
>Thank You    
>

Reply via email to