Javatar Javatar - 1 month ago 11
Java Question

Can I access an injected ejb from an inner class?

As i clearly mentioned above, I would be glad to hear your ideas about that.

btw, some other ones say;
"call Component.getInstance(Facade,true) from your inner class."
However, I dont understand it actually..

Thanks

Answer

Once the injection has happened, it's just a reference like any other, so there's no reason why it should not work.