All entries for Wednesday 11 January 2006
January 11, 2006
Challenge the ticket
I received a penalty ticket last December. It said I was fined £60 for paking over permitted time.
However, in the ticket, it showed that I only packed for seven minutes. The permited time is half hour.
I wrote a letter to City coucil parking service and challenged the penalty.
Today I received a letter from council, saying 'I please to tell you that the penalty notice has been cancelled'.
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