Entity Manager is always NULL - Weblogic / Netbeans
pin guan wang
posted 2 years ago
I can inject the entity manager to one of my EJB using @PersistenceContext.
However, when I try to remove this entity manager injection, and inject the entity manager from the next level, the entity manager is always null.
Please refer to my code below:
The 1st EJB:
My local business interface
Please refer to my environment:
IDE: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_67-b01
System: Windows 8 version 6.2 running on amd64; Cp1252;
WebLogic Server Version: 18.104.22.168.0