controller « Transaction « Spring Q&A





1. Spring @Controller and Transactionmanager    stackoverflow.com

I'm having a basic Spring Controller

package org.foo;

@Controller
public class HelloWorldController implements IHelloWorldController
{
   @RequestMapping(value = "/b/c/", method = RequestMethod.GET)
   public void doCriticalStuff(HttpServletRequest request, HttpServletResponse response){
    ...

2. Transactional: controller vs service    stackoverflow.com

Consider I have a controller method get() which calls a few service methods working with database. Is it correct to make the entire controller method transactional or just every service method? It seems ...

3. Newbie Spring Transaction question from controller    stackoverflow.com

I'm using a spring REST controller & have a situation where both REST client call the controller to get values to be processed however I'm finding that they are both ...

4. Transaction rollback in Spring MVC controller    stackoverflow.com

I have a Spring MVC controller annotated with @Transaction, and under certain inputs I need to rollback the transaction. As I understand, the proper way to trigger a rollback is to throw ...

5. Transaction Rollback after controller connection is terminated (i.e. the client has timed-out)    stackoverflow.com

Picture the scene; I have a mobile App that withdraws $20 from a Spring managed Server and waits for confirmation before marking it complete on the app. However;

  1. Mobile app sends the ...

6. Transaction within controller    forum.springsource.org

In my controller I call a service to update the database and another to send an email. If the database call is successful but the email sends then I want to ...

7. Spring MVC and Ajax responder in the same controller and locking.    forum.springsource.org

Spring MVC and Ajax responder in the same controller and locking. I have the following controller setup in Spring 3.0.5 Code: @Controller @RequestMapping (value="myForm") public class SubmitClassController { Status myStatus= newStatus(); ...

8. Transaction annotation ignored on MVC controllers subclasses?    forum.springsource.org

Transaction annotation ignored on MVC controllers subclasses? Our application uses a rich domain model and we feel we can get away without a service layer, i.e. the MVC controllers talk directly ...

9. Hibernate and controller domain synchronization problem    forum.springsource.org

Oct 4th, 2006, 11:26 AM #1 kenstershiro View Profile View Forum Posts Junior Member Join Date Oct 2006 Location Rome Posts 14 Hibernate and controller domain synchronization problem Hi I'm running ...





10. Transaction Aspect not applied for Controller    forum.springsource.org

Code: package com.mycompany.service; import com.mycompany.spring.GWTSpringController; import com.mycompany.service.LoginService; import com.mycompany.databeans.Login; import com.mycompany.controller.LoginController; public class LoginServiceImpl extends GWTSpringController implements LoginService { private LoginController loginController; public void setLoginController(LoginController loginController) { this.loginController = loginController; } ...

11. Transaction doesn't rollback when an exception is thrown in controller    forum.springsource.org

Transaction doesn't rollback when an exception is thrown in controller Hi, I use Spring MVC with Hibernate as ORM server. I use spring for AOP and Code: org.springframework.orm.hibernate3.support.OpenSessionInViewFilter My AOP is: ...

12. Transaction in MVC Controller    forum.springsource.org

Transaction in MVC Controller Hi, I am using Spring 2.5 with business logic DAO beans that extend JpaDaoSupport template and

13. transactional JUnit4 controller testing with multiple DataSources    forum.springsource.org

transactional JUnit4 controller testing with multiple DataSources I'm attempting to write a test as an extension of AbstractTransactionalJUnit4SpringContextTests for a SimpleFormController. I happen to have two DataSources in my application context: ...

14. Hibernate transactions not allowed on Controllers?!    forum.springsource.org

Hibernate transactions not allowed on Controllers?! Hi, I wrote a controller that lazily loads all the elements in a self-referencing schema from my database. I then added the transaction declaration for ...

15. Annotation based controller and concurrent request (synchronization)    forum.springsource.org

Annotation based controller and concurrent request (synchronization) Hi there, as I am changing my application from XML to annotation style (component scanning) I need further knowlege about how to get a ...

16. Transactional controller?    forum.springsource.org

Transactional controller? Hi guys, I'm trying to annotate some controller methods so the entire execution of that method is done in one transaction, but that doesn't seem to work. First of ...





17. Is @Transactional supported for @Controller classes?    forum.springsource.org

Is @Transactional supported for @Controller classes? I'm using a pretty standard setup - Tomcat, Spring 2.5, Java 6, JPA (Hibernate). Let's say I want to skip all the usual layered architecture, ...

18. Spring transaction management in Controller Layer    forum.springsource.org

Spring transaction management in Controller Layer I was refactoring some legacy code and working on getting Spring transaction up and running. I was able to get the rollback working but I ...

19. How to make a controller's method transactional    forum.springsource.org

service layer provides one of requirement of usecase. It can have one dao/ multiple dao. and as per best practices service layer should be transactional.