必須將 WebLogic 專有 EJBGEN 註釋從應用程式中移除,才能在 WebSphere Application Server 上部署。 這些註釋來自 weblogic.ejbgen 套件。
此規則會偵測是否在 Java 檔中使用這些 EJBGEN 註釋。在原始檔掃描器中提供了此規則的快速修正程式。 快速修正程式會移除所有註釋及其內容和對應的匯入項目。
|
import weblogic.ejbgen.Session;; ... @Session(maxBeansInFreePool = "1000", initialBeansInFreePool = "0", transTimeoutSeconds = "0", type = Session.SessionType.TEST, defaultTransaction = Constants.TransactionAttribute.TEST, enableCallByReference = Constants.Bool.TRUE, ejbName = "TestSessionEJB") ... @weblogic.ejbgen.JndiName(remote = "TestSessionEJB.TestSessionHome") |
將移除先前所示的所有程式碼行。這會包括匯入項目、不完整的註釋、完整註釋及這些註釋中的所有內容。