I like to work with Spring features like @Component
, @Autowired
or ApplicationContext
even in smaller applications (like batch applications).
I've read that Java EE 6 is now a viable alternative to Spring in enterprise applications. Is that also true for smaller ones? What would be the corresponding alternatives to the features I've mentioned above?
Java EE 6 is not going to be any lighter that's for sure. In the Java EE space look at jBoss Weld. But really good alternate and in lighter weight is google Guice.