Thanks for your quick response Mark. Ok I got everything in order
Ok got some more questions:
Since I used Hibernate, and my hibernate settings are in WEB-INF/applicationContext.xml file, do I really need that hibernate-cfg.xml file that practically comes with Hibernate?
Now for that transaction thing <tx:annotation-driven /> ... suppose I now want to run it under J2EE1.4 and since 1.4 does not support annotations, how to use <tx:advice> and aop to get around this? If the xml config is fine, do I need to cater my service class to explicitly start transaction blablabla? Currently I have
Since my aop pointcut uses AspectJ syntax, I download AspectJ jars and I left my service class unchanged (just remove the @Transactional annotations), everything works again
Not sure if you know AspectJ much. If I did not use AspectJ syntax, what's the pointcut should look like? Is it just regexp for what my service (here UserService)? Do I need to add multiple aop:advisor for each service or is that a wildcard for all my services?
Apart from using the above approach, is there another approach to achieve the same goal as the annotated transaction version (<tx:annotation-driven/>)?
Thanks again.