uCosminexus Application Server, EJB Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

2.19.2 Error handling in Singleton Session Beans

The following errors might occur during the initialization of a Singleton Session Bean:

If initialization of a Singleton Session Bean fails, javax.ejb.NoSuchEJBException occurs for invoking the business interface method of a Singleton Session Bean.

If initialization is successful, the instance of the Singleton Session Bean is retained until the application stops. The instance of the Singleton Session Bean is not destroyed even if a system exception is thrown from the business method or the callback method of a Singleton Session Bean.

Note
With Application Server, you cannot invoke the asynchronous method of a Singleton Session Bean from the PostConstruct method of a Singleton Session Bean.