### Lifecycle States Within the JBI Environment

Service Assemblies and Components have lifecycle states that can be managed using the Application Server Admin Console. The lifecycle states of Service Units are managed indirectly through the Service Assembly.

JBI components and Service Assemblies have the following lifecyle states:

- Started

  The component or Service Assembly has been successfully started.

- Stopped

  The component or Service Assembly has been stopped (which implies it was previously started). See the component documentation for the use of this state.

- Shutdown

  The component or Service Assembly has been shut down. In this state, the component can be uninstalled and the Service Assembly can be undeployed.

The JBI Runtime persists the lifecycle states of JBI components and Service Assemblies. When the application server shuts down and then restarts, JBI components and Service Assemblies revert to their state at the time the application server shut down.

Note - The JBI runtime attempts to revert to the "desired" state of a JBI component or a Service Assembly. For example, suppose you tried to start a JBI component but it did not start due to an error in the component. If you restart the Application Server, the JBI runtime attempts to start the component again.