Hi,
I have an stateless EJB with an injected EntityManager instance. If
start to decorate the bean with an decorator via CDI, the entity manager
is never injected.
Any idea why the entity manager is null?
@Stateless
public class SDMPersistenceProvider implements SDMPersistence
{
@PersistenceContext(unitName = "sdmPU")
protected EntityManager em;
...
}
@Decorator
public abstract class SDMPersistenceDecorator
implements SDMPersistence
{
@Inject
@Delegate
SDMPersistence delegate;
....
}
Bye,
Oliver