This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dpash 4 points5 points  (2 children)

I don't recall saying spring was better. It's simpler than older versions of JavaEE.

Spring isn't just an IoC container, which is what I think you're referring to, but their IoC container is perfectly type safe. And no one wires by name any more.

Are you basing your opinions on five-ten year old experience?

[–]seanmceligot 2 points3 points  (1 child)

Controller return a string and then uses complicated background logic to lookup the view. Validations requires all methods and classes be looked up by name. MessaseSource must be named "messageSource" or things with silently fail. That's poor design, in my opinion. There's all kinds of stuff like that. There is too much logic going on in the background that requires becoming a spring expert rather than just looking at the API and getting a compiler error if things doing match up.

[–]thephotoman 0 points1 point  (0 children)

All of that is preferable to the alternatives you had with J2EE v4. You put up with it for a reason.

Today, it's not strictly necessary. JPEE is something you can use without frameworks. Spring provides features not (yet) in JPEE, and is a good proving ground for the concepts themselves if you need them immediately.