package org.jboss.as.quickstarts.tasks.beans;

import javax.ejb.Stateful;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.PersistenceContextType;

@Stateful
public class Resources {

   @PersistenceContext(type=PersistenceContextType.EXTENDED)
   private EntityManager em;
   
   @Produces
   public EntityManager getEm() {
      return em;
   }
   
}

@@ -67,16 +67,63 @@
 ateful;%0A
+import javax.enterprise.context.RequestScoped;%0A
 import j
@@ -300,16 +300,31 @@
 tateful%0A
+@RequestScoped%0A
 public c

Make Resources request scoped