Boa tarde. Tenho a classe abaixo para gerenciar minhas EntityManager's, Consigo fazer o pacote e implantar no Tomcat sem problemas, porém fazendo a implantação no Wildfly, obtenho o seguinte erro: WELD-001424: The following disposal methods were declared but did not resolve to a producer
@ApplicationScoped
public class EntityManagerProducer implements Serializable {
@Produces
@RequestScoped
@ADME
public EntityManager criaADMEEntityManager() {
return Persistence.createEntityManagerFactory("ADME").createEntityManager();
}
@Produces
@RequestScoped
@PROAD
public EntityManager criaPROADEntityManager() {
return Persistence.createEntityManagerFactory("PROAD").createEntityManager();
}
public void fechaEntityManager(@Disposes EntityManager manager) {
if (manager.isOpen()) {
manager.close();
}
}
}