Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1572

Injected SessionContext became invalid after passivation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • AS 4.2.2.GA
    • injection
    • None

    Description

      I have SFSB with SessionContext injected as:

      @Resource
      private SessionContext ctx;

      Some of my SFSB's methods use ctx.getBusinessObject(). After passivation and activation of bean ctx.getBusinessObject() produces NPE.
      While debugging I discover that ctx is instance of org.jboss.ejb3.BaseSessionContext. In it's writeExternal() / readExternal() it loose baseContext, which is needed for getBusinessObject() invocation.

      Attachments

        Activity

          People

            arubinge@redhat.com Andrew Rubinger (Inactive)
            ImmortAlex Alexey Neupokoev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: