Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-250

@SessionScoped components cannot make use of non Serializable producer beans like EntityManager producers

    XMLWordPrintable

Details

    • Hide

      mark the field as transient

      Show
      mark the field as transient

    Description

      Reported at Pete's request

      public class Databases {
      @Produces
      @PersistenceContext(unitName = "users")
      @Users
      EntityManager userDatabaseEntityManager;
      }

      @Named
      @SessionScoped
      public class Identifier implements Serializable {
      private boolean logged;
      private User user = new User();
      @Inject @Users private EntityManager usersEntityManager;

      Attachments

        Activity

          People

            pmuiratbleepbleep Pete Muir (Inactive)
            rhn-engineering-ebernard Emmanuel Bernard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: