1
如果我在使用RESTeasy 2.1的Web应用程序内部使用EJB,是否需要按照this document中所述注释接口?如果未使用RESTful界面发布,我是否需要注释和EJB?
看起来像这样认为the document显示了如何配置一个EJB公开发布 - 通过URL访问。
当我使用the document描述的注解我得到这个错误:
14:01:50,294 ERROR [STDERR] 1979 [main] INFO org.jboss.resteasy.plugins.server.servlet.ConfigurationBootstrap - Adding scanned resource: com.ccorp.report.ejb3.TestBean
14:01:50,457 ERROR [[/ReportAPI]] Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
java.lang.RuntimeException: javax.naming.NameNotFoundException: Test not bound
我RestEasy的扫描启用,也配置了此添加我的web.xml文件;
<context-param>
<param-name>resteasy.jndi.resources</param-name>
<param-value>Test/String</param-value>
</context-param>
任何想法都非常欢迎!