What is exactly “container managed object” in Java 6 EE world?
问题 I tried to use CDI for my struts action running on glassfish. But java dependency injection does not work for it. It works for JSF but not struts. As I read -- container injects dependencies to any instance of container managed bean (bean created by container). So, what is "container managed bean"? Any POJO? Or only jsf back bean, ejb-bean and so on? And how it happens? Glassfish has special class-loader to inject? 回答1: I only can inject your CDI beans in managed classes. Struts creates its