Class EJBStoppedException

All Implemented Interfaces:

public class EJBStoppedException extends RuntimeException
The EJBStoppedException is thrown by the Enterprise Java Bean (EJB) container when an attempt is made to access either an EJB instance or EJB home that has been previously stopped. Once an application has been stopped, references to bean instances or homes are no longer valid.

When an application is started again, any local references obtained using an earlier running version of the application must be replaced. Generally, every time an application is started, a new classloader instance is used, so local references obtained for an application that was loaded with one classloader will not be compatible with references obtained for the same application started later with a different classloader.

Remote references will not work when no version of the application is running, but will resume working when a new version of the application is started, assume no incompatible interface changes have been made.

Note: an EJBStoppedException would not be returned directly to an application, but would be nested within the appropriate exception required by the EJB Specification for the type of EJB access being attempted. For example, an attempt to use a reference to an EJB local business interface would result in a jakarta.ejb.NoSuchEJBException.

See Also:
  • Constructor Details

    • EJBStoppedException

      public EJBStoppedException()
      Constructs a new EJBStoppedException; no message.
    • EJBStoppedException

      public EJBStoppedException(String detailMessage)
      Constructs a new EJBStoppedException with the specified detail message.