My question is: for JEE5 (SCEA5), do we still need to use Service Locator as we used to (prior to EJB 3.0)? When accessing a Statelss EJB, why should we use a Service Locator if we can just inject it through annotations?
On the other hand, when it comes to accessing Stateful EJB (from a Stateless EJB or any non-stateful object) we can't just inject it since we would keep injected the same Stateful Bean for the other users, so what to do there? Do we use a Service Locator there?
Thank you very much. Bye
I feel there must be far better ways to do what I do... that makes learning even funnier