• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

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

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:

Anyone can give me some idea?

Thanks in advance
And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic