Search code examples
javaspringjava-6

Alternative to Spring in smaller applications


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?


Solution

  • 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.