I have been writing
Junit tests for an application targeted for the JBoss EAP 7. The application is able to inject the value of the
PersistenceContext in the unit test class but does not
inject the value in the DAO, this results in a null pointer exception. Could you tell me how to get the
@PersistenceContext annotation working in the the DAO class?
- Red Hat JBoss Enterprise Application Platform (EAP)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.