You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openwebbeans.apache.org by Thomas Andraschko <to...@yahoo.de> on 2011/08/04 22:15:02 UTC

Some questions about generics and @Singleton

Hi,

first i declared @Singleton on my DAO's but sometimes the EntityManager (which was injected with a normal producer) was null.
So i looked at other examples and i tried @ApplicationScoped.
After removing all final methods (Why OWB does not throw this exception with @Singleton but with @ApplicationScoped???) , i get a exception in my generic DAO.
I get the persistent class from getGenericSuperclass().getActualTypeArguments()[0] but AFAICS the superclass is now a proxy of OWB and does not work anymore.
How can i fix this?

Thanks and best regards,
Thomas