| Article: |
POJO Application Frameworks: Spring Vs. EJB 3.0 | |
| Subject: | Misses the mark on Spring | |
| Date: | 2005-07-03 22:49:17 | |
| From: | MichaelYuan | |
|
Response to: Misses the mark on Spring
|
||
|
Like I said, if you need to assemble your own app services, then Spring is a better choice, as each EJB 3 implementation is optimized for a special app server for better performance and user experience. But I disagree that unit testing is an advantage for Spring -- the new generation of lightweight EJB 3 containers makes in-container testing easier (and of course more accurate) than using mocks -- give it a try!
|
||
Showing messages 1 through 1 of 1.
-
Misses the mark on Spring
2006-10-05 11:37:52 mrpantsuit [View]



Mock testing w/ EasyMock is...well...easy.
The only difference between a Spring bean and an EJB3 EJB is the addition of EJBE annotations. How does adding something make it simpler?
I would recommend Spring2/Hibernate or Spring2/JPA for most apps and reserve EJB3 for very complex apps requiring vast scalability and distribution.