将 EJB 应用程序从 WebSphere Classic 迁移到 Liberty 需要 ejblite-3.1

Migrating EJB application from WebSphere Classic to Liberty Requires ejblite-3.1

我继承了一个遗留的 EJB 应用程序,该应用程序构建为带有会话 bean 和 JPA 的 EJB 3.0。我正在从应用程序正常运行的 WebSphere 8.0 迁移。我已经在 WebSphere 8.5.5 经典版上进行了测试,没有任何问题,但是,出于战略原因,我们决定使用 WebSphere Liberty。我在应用程序服务器上部署了两个 ear 文件,一个是前端 EAR 应用程序,另一个是 EJB (JPA) 应用程序。两个应用程序 运行 都在同一个 JVM 中。我已经部署了两者,Liberty 将启动,但是,我经常(我知道我可以 select 弹出窗口来保存我的选择)看到弹出窗口说我的“应用程序 XXXX 需要功能:ejb -3.1 lite。但是,我想使用 ejb3.2-lite。在 Eclipse 的项目方面(Eclipse Juno w/WDT),我不能选择 EJB 3.2,因为该选项不存在。我可以选择的最高版本是 3.1是当前级别。这是我的 server.xml 文件的片段:

<server description="new server">

<!-- Enable features -->
<featureManager>
    <feature>javaee-7.0</feature>
    <feature>localConnector-1.0</feature>
    <feature>distributedMap-1.0</feature>
    <feature>adminCenter-1.0</feature> 
    <feature>ssl-1.0</feature>
    <feature>usr:webCacheMonitor-1.0</feature>
    <feature>webCache-1.0</feature>
    <feature>ldapRegistry-3.0</feature>
    <feature>ejbRemote-3.2</feature>
</featureManager>

<!-- To access this server from a remote client add a host attribute to the following element, e.g. host="*" -->
<httpEndpoint host="*" httpPort="9080" httpsPort="9443" id="defaultHttpEndpoint"/>

<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true"/>
<applicationMonitor updateTrigger="mbean"/>
<enterpriseApplication id="CHServiceEAR" location="CHServiceEAR.ear" name="CHServiceEAR"/>
<enterpriseApplication id="CHNewCHRDMEAR" location="CHNewCHRDMEAR.ear" name="CHNewCHRDMEAR">
    <application-bnd>
       <security-role name="AllAuthenticated">
           <special-subject type="ALL_AUTHENTICATED_USERS" />
       </security-role>
   </application-bnd>
</enterpriseApplication>

在 Ear 文件 java 项目中,我 select 编辑了 EJB 3.1,但这只是因为我看不到将 select 3.2 作为 EJB 规范的方法。由于您可以在上面看到我正在使用完整的 java7EE 配置文件,因此我自动获得了 ejblite-3.2,但由于某种原因,我的应用程序似乎无法利用它。请指教!

Eclipse Juno 中的 WTP 版本不支持 JavaEE7。尝试升级到 Kepler 及更高版本 - 有关更多详细信息,请参阅新的值得注意的部分 https://www.eclipse.org/webtools/releases/3.5.0/NewAndNoteworthy/javaee.php