EJB3 Business Delegates

Posted by mykola on Stack Overflow See other posts from Stack Overflow or by mykola
Published on 2010-03-25T18:05:24Z Indexed on 2010/03/25 19:33 UTC
Read the original article Hit count: 507

Filed under:
|
|
|
|

Is there any reason for making delegate when using EJB3? Because the only real benefit i see from delegate is that it allows to hide lookup and access details of EJB architecture. Well it also provides some decoupling but it's mostly unused, imho. With EJB3 we have injection so now i can just create a variable with @EJB annotation and use it as is. Do i still need delegates? Is this injection resource consuming? I mean if i use it in JSF's request managed beans may be it's still better to use delegates just to lessen these injection calls?

Thank you!

© Stack Overflow or respective owner

Related posts about java

Related posts about ejb3