Uploaded image for project: 'CDI Specification Issues'
  1. CDI Specification Issues
  2. CDI-708

Serialization problems in section "1.3.1. JSF example".

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 2.0 .Final
    • Concepts
    • None

    Description

      Section "1.3.1. JSF example" provide an example of a class Login, that saves in its state an EntityManager reference and two Parameter references.

      The JPA specification does not say that a Parameter instance is serializable.

      This is also true for the EntityManager reference which is @Dependent (see section "1.3.3. Java EE component environment example"). JPA does not specify that the EntityManager is serializable and the EJB specification only specifies serialization semantics for passivation-enabled @Stateful EJB:s (which encourages the bean provider to not mark an EntityManager reference as transient, see EJB ยง4.2.1).

      Attachments

        Activity

          People

            Unassigned Unassigned
            martin.andersson_jira Martin Andersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: