title: Is CDI a good replacement of Spring?
body: <p>We are planning to write a web application from the scratch, it has been decided to go with the latest edition of Glassfish which complies with Java EE 6 standard, therefore we are analyzing if CDI can be used instead of Spring.</p>
  <p>Can we say that CDI could be a replacement for Spring?</p>