• ↑↓ to navigate
  • ↵ to open
  • ⟶ to select
  • ⌘ ⌥ ↵ to open in a panel
  • ←→ to navigate
  • esc to dismiss
⌘ '
keyboard shortcuts

The Problem

How does a passivated stateful session bean resume service when a client makes a request?

Core Idea

Activation is the process where the container deserializes a previously passivated stateful session bean back into memory to handle a client request. The bean moves from “Passive” state to “Ready” state.

How It Works

  • Container reads serialized state from storage
  • Container creates a new instance or reuses an existing one
  • Container invokes ejbActivate() callback on the bean
  • Bean re-acquires resources it released during passivation
  • Business method executes on the restored bean

Key Properties

  • Only applies to stateful session beans
  • Triggered when client calls a method on a passivated bean
  • Restores conversational state from storage
  • Opposite of passivation

Visual Explanation

Activation A Activation Input B Activation Core Mechanism A->B triggers C Activation Output B->C produces

Semantic Network

semantic_Activation THIS Activation REL1 Related Concept THIS--REL1 related REL2 Builds Into THIS--REL2 builds into

Connections

Edge Cases & Gotchas

  • Activation is slower than direct method calls on active beans
  • External resources may need to be re-acquired (e.g., database connections)
  • State serialization must be serializable (implement Serializable)