January 11, 2006

Spring Training

Note how the TransactionProxyFactoryBean above is named gameRenter. This is because it will produce a transactional GameRenter implementation and that is what we want to expose to client code (not the raw business object.)

It is using FactoryBean.
The tutor emphasized that FactoryBean will return its producer.

AbstractTransactionalDataSourceSpringContextTests
It is very useful for unit test. It will help to re-instate the status of test database

Transaction
To implements declarative transaction, you can use AOP or AspectJ or something else.

For AOP, the logic flow is as follows:

Advisor -> Interceptor ->TransactionManager & transactionAttributeSource
TransactionAttributeSource -> MatchAlwaysTranstionAttributeSource | metadata.commons.CommonsAttributes


- No comments Not publicly viewable


Add a comment

You are not allowed to comment on this entry as it has restricted commenting permissions.

Trackbacks

  1. Spring AOP

    Concept Aspect and Advisor are interchangeable Pointcut is refinement of join point Aspect, Join point, Poincut advice are generic and appl to .net as well. Advisor is specific to Spring Proxy: it...

    Oracle/Java/Others - 13 Jan 2006, 15:54

Search this blog

Search Warwick Blogs

 

Tags

Most recent comments

  • Oracle 11g is the clear leader in this area. Oracle has invested he… by shaane on this entry
  • All the features are very nice.I like Repair Advisors the most.Orac… by lucy on this entry
  • “logical standby failed to re–start, I am also getting … by anemia on this entry
  • thanks for give nice information for health.. by Appointment Setting on this entry
  • Thanks for the nice information because from last three days i am s… by robot vacuum on this entry
Not signed in
Sign in

Powered by BlogBuilder
© MMXII