• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

EJB can be accessed by InitialContext but bot @EJB

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

Im using JBoss 6. Ive a ear file which is made up of a:

WAR
EJB JAR (Message Driven Beans)
and in lib folder:
a number of custom jars some of which have annotated beans

All the annotated beans can be access for example by


but in my MDB classes if i try

is always null



What can the issue be?
the ejb jar
has ejb-jar.xml
jboss-ejb3.xml
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When/where in the code are you trying to access that injected bean instance? Can you post the NullPointerException or whatever exception stacktrace you are seeing?
 
reply
    Bookmark Topic Watch Topic
  • New Topic