Originally posted by Eric Nielsen:
Most likely its being used for Dependency Injection, possible also for some Aspect Oriented Programming.
(as special cases of these, you'll often see it handle Session/EntityManager injection and transaction management)
Originally posted by Jesus Angeles:
I noticed that dependency injection was used, like a replacement to jndi. This is possible by creating annotations right, which is possible too low-level and error-prone? What makes it worth using Spring for just this feature?
Originally posted by Jesus Angeles:
Aop can introduce many possibilities; except in ejb where there is a corresponding interceptor technology, and filter for servlets/jsps.
Transaction management and entitymanager in jee 5 can already be injected. So, the spring's Transaction management and entitymanager is functionally exactly the same as the non-spring ejb 3 entitymanager and transaction management?
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Originally posted by Jesus Angeles:
In addition to what you mentioned, I found this material discussing an example where there are 4 layers: presentation, database, business, domain model.
http://www.onjava.com/pub/a/onjava/2004/04/07/wiringwebapps.html?page=1
Presentation - struts
database - hibernate
business - spring
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|