• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Entity Manager is always NULL - Weblogic / Netbeans

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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:


My persistence.xml





The 1st EJB:





2nd 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: 12.1.3.0.0




Anyone can give me some idea?

Thanks in advance
 
reply
    Bookmark Topic Watch Topic
  • New Topic