Hello everyone,
I have this problem for the past 3 days, searched the internet during the past days looking for an answer with no use. If internet was a desert i would have been dead by now!
I am sorry if this question seems silly to most of you but yes I am a beginner :s
Now, here is the problem!:
I am trying to inject a local bean into another bean and i keep on getting errors. Based on the code that I am pasting here is the error:
Here is my Local interface and bean
Here is the Bean that's trying to inject BBean
I am using GlassFish and NetBeans to develope and
test my project.
BTW I couldn't inject a local bean into a
servlet either, I had to make it Remote to get injection to work (JNDI fixed the problem I suppose).
Based on my understanding, since BBean is local, I should use beanName property (or attribute) with @EJB, but it is not working.
I couldn't find a book/tutorial (at least an easy going one) or a resource that explain the dirty work that has to be done just to get resource injection to work, I am talking about DD's that must be configured properly. Examples in tutorials are so straight and nice they even look innocent, but when we try to build the simplest example just to try things Boom, exceptions here blasts there!
Appreciate your help, more than you can imagine!