thread « MVC Controller « Spring Q&A





1. Spring @Controller which calls an @Async method then calls get() on the returned Future....code smell?    stackoverflow.com

I'm looking at a spring @Controller method that calls an @Async method, does some "other stuff", then calls .get() on the Future returned by the async method call. I can see how ...

2. Create a worker thread and run from a servlet or Spring controller    stackoverflow.com

I would like to execute some task after a user request in background. My initial idea is to create a work thread and execute it from a servlet. However, I do ...

3. Unit testing @Controller: No thread-bound request found    forum.springsource.org

Unit testing @Controller: No thread-bound request found Hi My controller method looks like this: Code: @RequestMapping(value = "/register", method = RequestMethod.POST) public String submitRegistrationForm(@Valid UserDto userDto, BindingResult result, WebRequest request, HttpSession ...

4. Issues with multithreading and controllers?    forum.springsource.org

Issues with multithreading and controllers? If I understand the Spring lifecycle, at least semi-correctly, then each singleton bean in my config file (or files) is instantiated once at startup and that ...

5. is Controller thread-safe or not?    forum.springsource.org

Hi all, This question seems stupid, i am just a little bit confused. I read some articles today says the Spring controllers are not thread-safe like Action in Struts, however, when ...

6. Blog about thread safe controllers    forum.springsource.org

I've blogged a little about Spring MVC controllers and thread safety. I think it's an important question that can result in hard to find and fix bugs if overlooked. It's available ...

7. Are Spring Controller objects single threaded or Multi threaded    forum.springsource.org

Are Spring Controller objects single threaded or Multi threaded I would like to know how Spring Controller objects for the web tier are instanciated and consumed by service thread of the ...

8. why arent controllers single threaded    forum.springsource.org

Why doesnt the framework just instantiate one controller per request thread? It would make things a lot simpler. (struts 2 does this). I want to be able to inject a non ...

9. Using threads in Spring controllers ?    forum.springsource.org

Can we use threads in spring controllers? My spring controller receives data as a collection of messages and based on messages we need to span thread for eah message. Can i ...





10. How to Run thread From Controller class    forum.springsource.org

Hi, For my current app I am using Spring MVC. i have two queries for paging purpose. 1) count query 2) result query both are taking 5 sec each . So ...

11. Polling from @Controller in request thread    forum.springsource.org

Polling from @Controller in request thread Was wondering if anybody has some input on how to solve the following scenario well. 1. A user inserts some value into an input field ...