使用 Easyrest 时应该如何访问 EJB?
我一直在努力让 Resteasy 工作(而不是剂量)。然而,我现在又对访问 EJB:s 感到头疼。我尝试过注入它们,使用 jndi 和大多数其他解决方案查找它们,但它们都不起作用。
我得到的信息如下: java.lang.RuntimeException:类不是根资源。
或者:java.lang.IllegalArgumentException:目标错误。
或者只是:NullPointer
使用 JBoss 5.1.0.GA 和 Resteasy 1.2.1.GA... 找不到任何有关如何完成此操作的文档。有人知道吗?
I have been trying to get Resteasy to work (and not it dose). However I now have another headache with accessing the EJB:s. I have tried injecting them, looking them up with jndi and most other solutions but none of them works.
I get massages like: java.lang.RuntimeException: Class is not a root resource.
Or: java.lang.IllegalArgumentException: Wrong target.
Or just: NullPointer
Using JBoss 5.1.0.GA and Resteasy 1.2.1.GA... Can't find any documentation on how this could be done. Do anybody know?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否看过以下内容:EJB 集成?
Have you seen this: EJB Integration?