Uploaded image for project: 'CDI TCK'
  1. CDI TCK
  2. CDITCK-267

Section 6.6.2 fourth bullet needs a test

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.2.0.Beta1
    • 1.0.4.Final
    • Tests
    • None

    Description

      CDI 1.0 Specification states (Section 6.6.2):

      A bean is called a passivation capable dependency if any contextual reference for that bean is preserved when the object
      holding the reference is passivated and then activated.
      The container must guarantee that:
      • all session beans are passivation capable dependencies,
      • all beans with normal scope are passivation capable dependencies,
      • all passivation capable beans with scope @Dependent are passivation capable dependencies,
      • all resources are passivation capable dependencies, and
      • the built-in beans of type Instance, Event, InjectionPoint and BeanManager are passivation capable dependencies.
      A custom implementation of Bean is a passivation capable dependency if it implements
      Scope() returns a normal scope type.

      There is no test for the fourth bullet. Such resources would include the entitymanager and other items from JNDI (mind is drawing a blank atm).

      Attachments

        Activity

          People

            mbriskar_jira Matej Briskar (Inactive)
            jporter@redhat.com Jason Porter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty