简体   繁体   English

CoAP服务器中的EJB处理?

[英]EJB handling in CoAP server?

We have our application backend deployed on wildfly-8, using EJB (Enterprise Java Bean) technology and it's catering HTTP requests. 我们使用EJB(企业Java Bean)技术将应用程序后端部署在wildfly-8上,并且可以满足HTTP请求的要求。 Now we need to support CoAP requests too, with using our same backend. 现在,我们也需要使用相同的后端来支持CoAP请求。 Unfortunately wildfly has no CoAP support. 不幸的是wildfly没有CoAP支持。

We are using Californium CoAP server now, but we are not able to use our same backend code using EJB's on the CoAP server. 我们现在正在使用Californium CoAP服务器,但无法在CoAP服务器上使用EJB使用相同的后端代码。

The only feasible solution we have come to is doing a remote EJB lookup from CoAP server to wildfly server. 我们唯一可行的解​​决方案是从CoAP服务器到wildfly服务器进行远程EJB查找。

Any pointers to be able to use our EJB backed backend for CoAP request too ? 是否有任何指针也能够将我们的EJB后端后端用于CoAP请求?

I've tried to answer to similar question here: 我试图在这里回答类似的问题:

https://stackoverflow.com/a/47967481/3323777 https://stackoverflow.com/a/47967481/3323777

I suppose (very raw guess) you would end up with Message Driven Beans anyway. 我想(非常原始的猜测)您最终还是会得到消息驱动的Bean。

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

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