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

CDI Producer method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.7
    • Fix Version/s: 1.6.3
    • Component/s: Core
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: