Originally posted by Silvio Esser:
Hung, Why do you not use EJB in stead of Spring?
Originally posted by Hung Tang:
In that case, I can't really find a compelling reason to suggest to use EJB2 for new projects. Sorry.
Originally posted by Silvio Esser:
EJB2 provides all (even more) the advantages or good stuffs you want in your design. Of course, it is more complicated than Spring for developers.
Originally posted by Silvio Esser:
The point I'm trying to make is that not to chase the buzzword, but take a close look of the real substance in a framework. What we really want is a STANDARD framework (maybe not perfect) to make developers' life easier to meet the business requirements.
Find a EJB book, it will list the advantages of EJB: code readability, good design, stable code base, documentation, J2EE support...
What is AOP? come on!
Originally posted by Silvio Esser:
I do not like a framework that requires you to write a large number of XML files to configure or use it. I select Hibernate because I have about 100 tables and I want the mapping logic be outside the Java code. XML mapping files are easier to be understood than Java code.
BTW, I do not like the terms of "IoC" and "DI". They are just new names of
old stuffs, no real new substances. I think this is a common problem of the
open source community.
Originally posted by Silvio Esser:
Business and data access tiers are POJOs. EJB sucks and Spring might be
better, but read this: http://crazybob.org/2006/01/i-dont-get-spring.html
"This is not to say that design is unnecessary. But after a certain point, design is just speculation." --Philip Chu
Originally posted by Silvio Esser:
I like to use the old names to describe old stuffs, like container, de-coupled, loosely-coupled, mediator, ...
Originally posted by Silvio Esser:
Another thing concerns me is that Spring is not 'light' anymore. It becomes
heavier and heavier, and even heavier than EJB.
Originally posted by Hung Tang:
Heaver than EJB huh? can you use EJB with Tomcat?
Originally posted by Silvio Esser:
Bridge pattern is another example.
You can always get JBoss. JBoss is just like Spring has lots of jar and XML files. The difference is that JBoss provides UI for configuration.
What's gotten into you? Could it be this tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|