CoAP and MQTT support in Wildfly 8.0.0.Final

巧了我就是萌 提交于 2019-12-14 02:35:34

问题


We have an enterprise solution deployed on Wildfly 8.0.0 server, we intend to support CoAP and MQTT also as communication protocol. We explored extensively but we couldn't find even any oblique reference to our problem case. Is it possible to add CoAP and MQTT support without destabilizing Wildfly setup ??


回答1:


I think theoretically it is possible to use a https://www.eclipse.org/californium/ within an EE server for CoAP.

The main issue here is that Californium listens to an UDP port (and sends datagrams too). So if you want to stay within a EE specification, you'll have to implement a JCA adapter for that. If you want things to just work, you can run/manage it from a JMX bean.




回答2:


WildFly being a Web Server doesn't necessarily need to support CoAP or MQTT because those are not standard HTTP based Communication protocols but protocols designed to enable M2M (Machine to Machine) Communication.

As of WildFly 8.0.0.Final it only allows HTTP (Servlet, JAX-RS, JAX-WS), Web Sockets, HTTP Upgraded Remoting (EJB Invocation, Remote JNDI).



来源:https://stackoverflow.com/questions/47880307/coap-and-mqtt-support-in-wildfly-8-0-0-final

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!