> I've used both setter and constructor dependency injection. > I much prefer the constructor approach:
It takes not too much to implement both methods in a pojo. You simply need to create setters for dependency and add a big constructor with all of the dependecy. The big contructor will call the setters for each parameter. I think there is no point in CDI vs SDI discussion: most used containers support both. I think the spring solution is better because it probably allow better integration with an EJB3 container and because spring provides wrappers to services that currently are avalon/cornerstone services. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]