Dec 19th, 2007, 09:26 AM
I'm not sure I understand what you mean ... Do you mean "Configuration of Spring Bean via XML" ?
Originally Posted by jeffastorey
Actually, last time I used EJB, it was before annotations. Lots of XML ... which I dont like. I should give a try to EJB3 ...
I like Hibernate with annotations. And I like IoC with Spring.
With annotations, you can have the definition of your POJO and their related aspects (like persistence) in the same source file. I find it easier to find my way around, instead of having to switch between a java file and an XML definition.
I dont really have any technical reason not to like EJB. I dont have much experience with them, and when I've seen them, it usually was in huge heavy projects. Spring "feels" more lightweight, with not as much constraints on the developer. But that probably comes more from the kind of projects in which they are used than on the technology itself ...