Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1932394230/ref=jranch-20" target="_blank" rel="nofollow">JUnit Recipes: Practical Methods for Programmer Testing</a>
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Originally posted by JeanLouis Marechaux:
Lasse,
Do you mean Proxy Bean to access EJBs ?? (sorry, but I'm not really used to Spring vocabulary)
So that you can have CMT capabilities only using EJBs ?? Am I lost ?
Originally posted by Karthik Guru:
No. Not EJB Just a java bean. A proxy that provides CMT ( container is Spring itself) before delegating to the java bean that does the actual work.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Originally posted by JeanLouis Marechaux:
ok, so the Spring container (Spring Core ??) as its own implementation of Transactions and provides a CMT feature....
Originally posted by Karthik Guru:
No it does NOT have its own implementation. It delegates to the underlying implementation. Can be a j2ee container, hibernate , jdo impl etc.
But as for he actual CMT part yes it does this by applying interceptors.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Lasse Koskela:
AOP interceptors. Spring implements the declarative transactions by attaching an interceptor to a bean and that interceptor intercepts incoming methods (as per configuration) to decide whether the user is authorized to invoke that particular method.
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Darn. I wasn't quite fast enoughOriginally posted by JeanLouis Marechaux:
Are we talking about transaction management or security here Laase
Actually, Spring uses either dynamic proxies (for interfaces) or CGLIB (for classes) to weave in the aspects.Originally posted by JeanLouis Marechaux:
I suppose CMT is done using AOP, so that demarcation code is added to the source code (begin and end JTA transaction s mostly).
Then you need a JTA implementation because Spring does not have an embedded one
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Lasse Koskela:
Darn. I wasn't quite fast enough
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
Don't get me started about those stupid light bulbs. |