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

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

XMLWordPrintable

    • Hide

      mark the field as transient

      Show
      mark the field as transient

      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;

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

                Created:
                Updated:
                Resolved: