问题描述
我正在将应用程序从JBoss EAP 5.1迁移到6.3.我正在解决编译错误,而我现在遇到的一个错误是
I am in the process of migrating an application from JBoss EAP 5.1 to 6.3. I am resolving compilation errors and one that i am getting right now is
package org.jboss.ejb3.annotation does not exist
[javac] import org.jboss.ejb3.annotation.LocalBinding;
我做了一些挖掘工作,从收集的数据中发现,他们说在javaee6中,他们不再使用它来标准化ejb命名空间.这是真的?一些与此相关的背景信息也将有所帮助
I did a bit of digging around and from what i gather, they say that in javaee6, they discontinued this to standardize the ejb namespaces.Is this true?Some background information on this would help as well
推荐答案
根据JBoss问题 AS7 -3015 ,JBoss ...不再支持绑定到EJB的自定义JNDI名称.
According to the JBoss issue AS7-3015, JBoss ...no longer supports binding to custom JNDI names for EJBs.
至少在另外两个JBoss论坛讨论线程中也提到了相同的信息:
The same information is also mentioned, at least, in two more JBoss forum discussion threads:
- Overload EJB jndi binding but @LocalBinding not found
- Custom JNDI Names
Therefore, the EJBs are only bounded to java:global, java:app, java:module namespaces as mandated by the specification.
这篇关于JBoss EAP 6是否支持@LocalBinding EJB注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!