JBoss EAP 6是否支持@LocalBinding EJB注释? [英] Does JBoss EAP 6 support @LocalBinding EJB annotation?

查看:198
本文介绍了JBoss EAP 6是否支持@LocalBinding EJB注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将应用程序从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

因此,按照的要求,EJB仅绑定到 java:global java:app java:module 命名空间. href ="https://docs.oracle.com/cd/E19798-01/821-1841/girgn/index.html" rel ="nofollow">规范.

Therefore, the EJBs are only bounded to java:global, java:app, java:module namespaces as mandated by the specification.

这篇关于JBoss EAP 6是否支持@LocalBinding EJB注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆