Using a secured EJB from a JAX-RS web service

浪子不回头ぞ 提交于 2019-12-06 01:12:16

If you change TestResource to be EJB and if you inject AuthenticationServiceBean using @EJB it should work.

You can look at jersey-ejb example. And there is also jersey-gf-ejb integration module to be used to use EJBs on Glassfish AS. This is Jersey specific, JAX-RS does not support to inject EJB into Resource class yet.

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