简体   繁体   English

使用UDP配置DOSGi

[英]configure DOSGi with UDP

I use DOSGi to connect two OSGi components (iPOJO components) over local network. 我使用DOSGi通过本地网络连接两个OSGi组件(iPOJO组件)。 I configured it with either SOAP or RESTful-JAX RS. 我使用SOAP或RESTful-JAX RS对其进行了配置。 However, both use TCP for communication (i saw this in Wireshark). 但是,两者都使用TCP进行通信(我在Wireshark中看到了这一点)。

Now, i would like to configure SOAP or RESTful-JAX RS with UDP. 现在,我想用UDP配置SOAP或RESTful-JAX RS。 How can i do that? 我怎样才能做到这一点? Thank you for your help. 谢谢您的帮助。

假设这是Apache CXF DOSGI的实现: 考虑到CXF如何将UDP用作传输工具 ,在创建分布式服务时使用udp URL作为“ org.apache.cxf.ws.address”看起来很简单。

Thank you very much for your response. 非常感谢您的回复。 I implemented an application including a server component and a client component as indicated by Using Distributed Services with iPOJO . 我实现了一个包含服务器组件和客户端组件的应用程序,如将分布式服务与iPOJO一起使用所示

However, it uses TCP for client-server communication 但是,它使用TCP进行客户端-服务器通信

I tried to declare the server with the "org.apache.cxf.ws.address" property with UDP as "udp://localhost:9090/service". 我试图用UDP的“ org.apache.cxf.ws.address”属性声明服务器为“ udp:// localhost:9090 / service”。

Example: 例:

<property name="service.exported.interfaces" value="*" />
<property name="service.exported.configs" value="org.apache.cxf.ws" /> 
<property name="org.apache.cxf.ws.address" value="udp://localhost:9090/service" />

However, i received an error: 但是,我收到一个错误:

Unknown protocol: udp

I'm using the package cxf-dosgi-ri-singlebundle-distribution-1.1.jar for client-server communication Could you please give me some advices? 我正在使用cxf-dosgi-ri-singlebundle-distribution-1.1.jar进行客户端-服务器通信,请给我一些建议吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM