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. Yep. 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. S, ALR 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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user