Interceptor « Transaction « Spring Q&A





1. How to enable Hibernate Interceptor when i have my Hibernate Transaction managed by Spring?    stackoverflow.com

If i have a @OneToMany relationship with @Cascade(CascadeType.SAVE_UPDATE) as follows

public class One {

    private Integer id;

    private List<Many> manyList = new ArrayList<Many>();

    ...

2. How to use transaction advisors with annotations?    stackoverflow.com

supose I have the following example:

@Transactional(propagation=Propagation.SUPPORTS, readOnly=true)
public class MyServiceImpl implements MyService {

    ...

    @Transactional(propagation=Propagation.REQUIRED, readOnly=false)
    public TransactionResponse addMyEntity(MyEntity e) throws ...

3. Which Aspect/Interceptor handles the @Transactional annotation    stackoverflow.com

Does anyone know which class handles the @Transactional annotation? I am searching for the source code that creates the transaction, specifically. Thanks, Erik

4. Session-in-view + transaction interceptor    forum.springsource.org

Session-in-view + transaction interceptor Hi I am trying to get up and running with webwork + spring + hibernate I've got everything working working with template callbacks for transactions but after ...

5. Transaction interceptor missing, unwanted rollback    forum.springsource.org

Transaction interceptor missing, unwanted rollback I have a service bean annotated with @Transactional on all of its service methods. These get called from the web. Service methods are the only ones ...

6. Prog. rollback of decl. transaction without interceptor - pb    forum.springsource.org

Prog. rollback of decl. transaction without interceptor - pb Im having problems triggering transaction rollback programmatically within a declaratively managed transaction. Some methods on our business interface have a 'preview' boolean ...

7. Hibernate Interceptor and Transactions    forum.springsource.org

I've been using an Interceptor for Hibernate 2 and from the beforeTransactionCompletion callback I was calling code intercepted by the TransactionInterceptor. Everything worked fine and I could see all the changes ...

8. How to define a transaction interceptor for each service instance    forum.springsource.org

How to define a transaction interceptor for each service instance I have service pojos and I want to have declarative transaction management. So (by the book) this is how I configured ...

9. hibernate transaction with interceptor    forum.springsource.org

hibernate transaction with interceptor I wrote a PlaceOrderFacade that uses a PlaceOrderRepository ( implemented with Hibernate )for DB access. So, i want to make all the facade's methods transactionnals ( declarative ...





10. AOP Interceptor with Transactions    forum.springsource.org

AOP Interceptor with Transactions Hello: I am pretty sure this topic has already come up, but I looked around the forum and I didn't find anything specific to my issue. Our ...

11. Hibernate Interceptor not getting invoked with Spring Transactional Unit tests    forum.springsource.org

Hibernate Interceptor not getting invoked with Spring Transactional Unit tests I wrote a Hibernate Interceptor for my application to change the state before an object is saved. The scenario is much ...

12. Strange Problem using hibernate interceptor/transaction advice    forum.springsource.org

Strange Problem using hibernate interceptor/transaction advice Hi there, My platform is Tomcat 5.5.20, Spring 2.0.2, Java 5, Hibernate 3.2.1.ga I am having a problem with the following advice: Code:

13. Wrapping a Transaction Interceptor    forum.springsource.org

Wrapping a Transaction Interceptor Hi guys, I am trying to get my retry interceptor to work with a transaction proxy. The interceptor works fine with any other been that does not ...

14. Exception interceptor at hiberntae transaction manager    forum.springsource.org

Exception interceptor at hiberntae transaction manager Hi, My application used to have an exception interceptor at the DAO layer , where I use the hibernate interceptor.I look up my dao beans ...

15. Version handling when using hibernate transaction interceptor    forum.springsource.org

Version handling when using hibernate transaction interceptor Hi, I have a application where I need to avoid concurrently updating inconsistancy data.Toc achieve this I used versioning. So what I did is ...

16. Hibernate transaction interceptor ?    forum.springsource.org

Hi, I'am facing a new challenge.In my application there is a reference number generated for an entity (like booking reference number ) when inserting to the database. This is done through ...





17. Transaction (interceptor?) around non persistent Object    forum.springsource.org

Transaction (interceptor?) around non persistent Object Hi, I should like to know how to implement an interceptor (or somethink similar) that I can define around my beans. My target is to ...

18. Moving transaction interceptor to a test    forum.springsource.org

Moving transaction interceptor to a test I am trying to make a TestNG test work correctly with transactions. The test calls a service that is intercepted by Spring to start a ...

19. Transaction scope of the interceptor.    forum.springsource.org

I have defined an interceptor that gets invoked prior to the method in the business class that is marked with transaction annotation. It looks like the interceptor code doesnt run in ...

20. Setting userid in Hibernate Transaction Interceptor    forum.springsource.org

Setting userid in Hibernate Transaction Interceptor I've seen a number of posts in the forum about getting the Hibernate interceptor set up to allow record audits within Spring. We have the ...

21. Question regarding Transaction Interceptor and Pointcut.    forum.springsource.org

Question regarding Transaction Interceptor and Pointcut. Currently I am using the following and everything works fine and fast and everybody is happy. However, when I change the PointCut list value to ...