Dependency Injection (DI) or Business Delegate (BD) when using
EJB 3:
I am new to EJB 3 but have used EJB 2 almost 5 yrs back and am familier with Business Delegate -->Service Locator -->Session Facade -->DTO-->DAO way of accessing entities.
But EJB 3 supports POJO which eleminates the need for DTO and also supports DI which eleminates the need for BD. I didnt get a chance to use EJB 3 yet. So actually i am confused in choosing b/w these two. I think we can still have a BD to get access to a session facade (which is remote) from the presentation layer (which will be on a different machine on a different jvm). Have the DI for accessing local ejb's (with in same jvm). Any thoughts ?
Also how do i depict the DI in a class diagram, i know how to do that for a BD as we have
pattern for that. Any references/example to depict DI in a class diagram will be greatly appreciated.
Thanks