Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
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
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
EJB and other Jakarta /Java EE Technologies
EJB can be accessed by InitialContext but bot @EJB
Ally Cavs
Ranch Hand
Posts: 95
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
new javax.naming.InitialContext().lookup("java:global/MyEarFile-1.0.0/MyWarFile-1.0.0/MyEJBImpl")
but in my MDB classes if i try
@EJB private MyEJBIint MyEJBInt;
is always null
//interface annotated with @Remote public interface MyEJBIint //impl annotated with @Stateless public class MyEJBImplimplements MyEJBIint {
What can the issue be?
the ejb jar
has ejb-jar.xml
jboss-ejb3.xml
Jaikiran Pai
Sheriff
Posts: 10445
227
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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?
[
My Blog
] [
JavaRanch Journal
]
It is difficult to free fools from the chains they revere - Voltaire. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
about "client view jar file must be included directly in app2.ear file"
Referencing EJB Local home from a POJO class of a separate web application
Can't deploy EJB jar to Glassfish
Accessing EJB from a Swing Client
EJB3.1-Weblogic12C. Problem creating dummy orb: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code
More...