cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Koray Duman <koray_...@yahoo.com>
Subject Re: Multiple Servises Registration
Date Wed, 26 Sep 2012 11:06:48 GMT
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. I want to make it in configuration
XML file.

Thank you
    





________________________________
 From: Sergey Beryozkin <sberyozkin@gmail.com>
To: users@cxf.apache.org 
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
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message