Class EJBStoppedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class EJBStoppedException
    extends java.lang.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 javax.ejb.NoSuchEJBException.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      EJBStoppedException()
      Constructs a new EJBStoppedException; no message.
      EJBStoppedException​(java.lang.String detailMessage)
      Constructs a new EJBStoppedException with the specified detail message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EJBStoppedException

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

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