Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1112

CDI Producer method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.7
    • 1.6.3
    • Core
    • None
    • Arch Linux kernel 4.3.3, application server TomEE 1.7.3 PLUME

    Description

      I have the producer method

      @Produces
      @ViewScoped
      @ViewEntityManager
      private EntityManager viewEntityManager() {
      return new EntityManagerImpl(entityManagerFactory);
      }

      The problem is EntityManager.class is not serializable so a error saying EntityManager.class it's not serializable and @ViewScoped should be serializable. But EntityManagerImpl.class is a serializable class. Weld implementation works fine.

      Attachments

        Activity

          People

            struberg Mark Struberg
            victorpasqualino Victor Machado Pasqualino
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: