我正在使用JPA和EJB創建Java EE應用程序。在@PersistenceContext(unitName =「airline」)中的問題是當我評論這一行時,它給了我錯誤null_pointer_exception,並且當它在服務器上運行代碼時得到以下錯誤。 Severe: Exception while preparing the app : Could not resolve a pers
我有一個JSF項目。在我的項目中,我使用一個StatelessEJB bean將數據庫與數據源連接起來。我通過考慮異常的錯誤代碼來處理數據庫SQLExceptions。當我得到20999錯誤代碼時,我需要使 bean中的會話無效並將頁面重定向到登錄頁面。 @Stateless
public class DB implements DBRemote {
@Resource(mapped
JAR與EAR文件相對於EJB的distinction是什麼? Glassfish的幫助說: [email protected]:~$
[email protected]:~$ GlassFish_Server/bin/asadmin deploy --help
... --type
The packaging archive type of the component th
我想呼籲的服務器負載安全的EJB方法,但我得到異常: 09:49:58,011 ERROR [org.jboss.as.ejb3.invocation] (ServerService Thread Pool -- 54) JBAS014134: EJB Invocation failed on component SecuredEJB for method public java.lang.Str