3 Replies Latest reply on Apr 5, 2011 5:13 PM by Kai Hennig

    Ambiguous dependencies with Seam Transaction in SE environment

    Alexis Hassler Apprentice

      Hi,


      I'm trying Seam Transaction with Weld SE 1.1.0.CR1.


      According to the doc, I've set a seam managed EntityManagerFactory :
           @SeamManaged
           @Produces
           @PersistenceUnit
           @ConversationScoped
           public EntityManagerFactory entityManagerFactory;

      I've set the SeSynchronizations and EntityTransaction beans, and the TransactionInterceptor interceptor in the beans.xml file.


      When starting Weld SE, it tells me that a dependency to a FlushModeManager bean is not satisfied. So I added such a bean :
           @Produces
           FlushModeManager flushModeManager = new FlushModeManagerImpl();


      Now Weld tells me that it has an ambiguous dependency for type EntityManager. So what's wrong in my configurations ?