b******y 发帖数: 1684 | 1 j2ee without EJB,除了spring,还有什么solution吗? | g*****g 发帖数: 34805 | 2 There are competing light-weight IoC like Guice, PicoContainer.
If you hate Spring, it should be possible to configure a stack not
using Spring at all.
But Spring is more than IoC and arguably more powerful than J2EE stack
with wide industry support, more support than EJB3.
I'd say spring is dominant at this point since most other frameworks
provide integration that's handy. Even EJB people will leverage spring
to get support on certain integration.
【在 b******y 的大作中提到】 : j2ee without EJB,除了spring,还有什么solution吗?
| b******y 发帖数: 1684 | 3 forgive my ignorance on spring...
i dont understand why spring is more popular than ejb3...
except that spring is far better than ejb2 and took the #1 place..
but isn't ejb3's annotation usage a lot better than spring's xml?
and not to mention vendor independence.
【在 g*****g 的大作中提到】 : There are competing light-weight IoC like Guice, PicoContainer. : If you hate Spring, it should be possible to configure a stack not : using Spring at all. : But Spring is more than IoC and arguably more powerful than J2EE stack : with wide industry support, more support than EJB3. : I'd say spring is dominant at this point since most other frameworks : provide integration that's handy. Even EJB people will leverage spring : to get support on certain integration.
| g*****g 发帖数: 34805 | 4
This is largely due to that spring does it right first, (IoC, AOP,
POJO oriented, no do one thing with 3 classes), getting mature,
popular and adopted by many open source projects before ejb3 becomes
a spec. ejb3 is pretty much some good practices of spring and
hibernate, and some good features of RoR (convention over configuration),
and I am gonna give it credit for that.
Well, since spring 2.0 and especially after 2.5, you can configure most
spring components using only annotations too. So th
【在 b******y 的大作中提到】 : forgive my ignorance on spring... : i dont understand why spring is more popular than ejb3... : except that spring is far better than ejb2 and took the #1 place.. : but isn't ejb3's annotation usage a lot better than spring's xml? : and not to mention vendor independence.
| b******y 发帖数: 1684 | 5 spring doesn't have good support for clustering, right?
in real production system, how to make a spring-based system
1. faster, 2. fault-tolerant, without extensive development?
【在 g*****g 的大作中提到】 : : This is largely due to that spring does it right first, (IoC, AOP, : POJO oriented, no do one thing with 3 classes), getting mature, : popular and adopted by many open source projects before ejb3 becomes : a spec. ejb3 is pretty much some good practices of spring and : hibernate, and some good features of RoR (convention over configuration), : and I am gonna give it credit for that. : Well, since spring 2.0 and especially after 2.5, you can configure most : spring components using only annotations too. So th
| g*****g 发帖数: 34805 | 6
Spring doesn't provide cluster support by itself, but there are
cluster support available on servlet/app server. And as Spring
is embedable, Spring doesn't hurt your clustering. In general,
it's just a web application and many servlet containers can
leverage that, e.g. Tomcat can cluster web applications.
For specific optimization,you may look into those solutions that
provides spring support, e.g. Terracotta. A solution like this may
be intrusive and tied to single vendor,
but EJB container us
【在 b******y 的大作中提到】 : spring doesn't have good support for clustering, right? : in real production system, how to make a spring-based system : 1. faster, 2. fault-tolerant, without extensive development?
| m******t 发帖数: 2416 | 7
spring 2.5 adds support for jsr-250 common annotations,
as well as using your own custom annotations.
【在 b******y 的大作中提到】 : forgive my ignorance on spring... : i dont understand why spring is more popular than ejb3... : except that spring is far better than ejb2 and took the #1 place.. : but isn't ejb3's annotation usage a lot better than spring's xml? : and not to mention vendor independence.
| b******y 发帖数: 1684 | 8 我比较老土,没用过spring也没follow。谢谢各位大牛。。。
你们实际使用spring vs ejb的感觉可以share一下吗?
不仅从dev,还有deployment和production的角度来谈谈?
【在 m******t 的大作中提到】 : : spring 2.5 adds support for jsr-250 common annotations, : as well as using your own custom annotations.
| z****e 发帖数: 54598 | | z*******e 发帖数: 777 | 10 Struts 2 也不错。我个人喜好SPRING 2 |
|