Ok, I tried the @Singleton trick, it still does not work.
I attached the debugger to the classes and noticed that CDI/Weld does not
detect that the class has any @PersistenceContext annotated field.
this=org.jboss.weld.bean-/home/domdorn/work/lyrix.git/webapp/target/lyrix-webapp/-ManagedBean-class
com.dominikdorn.lyrix.dao.Jpa2ArtistDao
ejbInjectionPoints = []
persistenceContextInjectionPoints = []
persistenceUnitInjectionPoints = []
resourceInjectionPoints = []
specializedBean = null
injectableFields = 2
[0] = an empty hashset
[1] = an empty hashset
I've attached the java source files + persistence.xml
Thanks for your help.
Dominik