[jboss-user] [EJB 3.0] - Re: @EJB injection in JBoss 5 application clients?
do-not-reply at jboss.com
Fri Oct 24 11:39:12 EDT 2008
Jaikiran, you give a good example of why the spec dictates the fields must be injected into static members. But it's OK to criticize something for being stupid.
"bcn" wrote : In real-world application that would make it almost useless.
Imagine if MC or Spring or any injection container limited you in this regard. The difference is whether your object is managed or not; if you create your own objects, they're not managed and you can't expect injection. If you get it from a container or other lookup store, then that's another story.
I've never liked Application Clients as they are. In addition to these programmatic limitations with injection into the Main class (which completely destroys good program design), you're limited to obtaining services from only one host.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4184515#4184515
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4184515
More information about the jboss-user