Stateful « Java EE « Spring Q&A





1. Java Spring MVC stateless-to-stateful handover    stackoverflow.com

Although I have tagged this as a java/spring question it can be easily asked of any mvc framework with stateless controllers. I know rails uses simple stateless controllers for instance so ...

2. In Spring MVC, can I have a stateful dropdown with a backing object?    stackoverflow.com

In Spring MVC, I want to have a form with an html drop down which is backed by a list of domain objects, but only displays one field from the objects. ...

3. Stateful beans and Stateless beans in Spring context    stackoverflow.com

i am reading spring through its official documentation and at one place i came to a line that use prototype scope for for all statefull beans while singleton for stateless beans. i ...

4. Pattern for Spring-MVC stateful interaction    stackoverflow.com

Today I was doing this thing with Spring:

  • Have a page with a form and a chance to choose one item related to the form.
  • If you push "Choose item" the app will ...

5. Is singleton stateful?    stackoverflow.com

Hi I got this asked in an interview question paper.

Singleton and Prototype (non-singleton) which is stateful and which is stateless
I am not sure if prototype is stateless ? Is ...

6. Stateful / request-scoped controllers    forum.springsource.org

Stateful / request-scoped controllers Hi All, I know Spring MVC is generally concidered to be stateless, but in our application we have scoped URLs (using some @PathVariable) which allow us to ...

7. Stateful ReplyTemplate    forum.springsource.org

Stateful ReplyTemplate Let say that we have the following code: final MyTransferObject to = new MyTransferObject(); ...... RetryCallback callback = new RetryCallback() { public MyTransferObject doWithRetry(RetryContext context) throws Exception { return ...

8. applying stateful mixins to any number of targets    forum.springsource.org

applying stateful mixins to any number of targets Does anyone have a simple example of applying a stateful mixin to any number of targets that are created on the fly? I ...

9. Stateful HttpInvoker    forum.springsource.org

Stateful HttpInvoker I was wondering if it is possible to use HttpInvoker in a stateful interaction with a client? Eg. suppose I have a service like this... Code: public interface TransactionalService ...





10. Method with stateful dependency: how to unit test?    forum.springsource.org

Method with stateful dependency: how to unit test? Hi all, We have a method which explicitly instantiates an object with a state in order to complete its work, basically something like ...

11. JNDI lookup on stateful remote bean    forum.springsource.org

Hi. Currently, I have the following code snippet in one of the classes: Code: InitialContext initialCtx = new InitialContext(); EventFactory eventFactory = (EventFactory) javax.rmi.PortableRemoteObject.narrow(initialCtx .lookup("com/ibm/websphere/events/factory"), EventFactory.class); I'd like to have Spring ...

12. "Stateful" HttpInvokerServiceExporter implementation    forum.springsource.org

"Stateful" HttpInvokerServiceExporter implementation ** English is not my first language Several reasons imposed me to use a httpInvoker service with a "Stateful" behavior (even implemented using HttpSession). I tried this solution ...

13. Stateful Singleton bean: Concurrence problem?    forum.springsource.org

Stateful Singleton bean: Concurrence problem? I have the following situation: I'm using Spring 2.0.6, hibernate 3.2 and Oracle 10g There is a table that concentrates a lot of traffic in the ...

14. Thread-Unsafe usage of Stateful bean Issue    forum.springsource.org

Thread-Unsafe usage of Stateful bean Issue I'm in the following situation. We've done a mass migration to Spring Framework from a legacy command bean framework. In this process we've somehow missed ...

15. Stateful steps and inter-step communication    forum.springsource.org

Stateful steps and inter-step communication There are a few things that caught my attention when using Spring Batch. Inter-step communication First of all, there doesn't seem to be any easy way ...

16. Stateful form view    forum.springsource.org

Stateful form view Hi, I am new to Spring and I try to find a solution for the following problem. I would like to have a page with simple form bind ...





17. Can Hessian be Stateful?    forum.springsource.org

Can Hessian be Stateful? I'm trying to create a stateful Hessian service. To accomplish this I was hoping to use the session scoping that Spring provides, but I'm falling short somewhere. ...

18. Best Practice for Stateful Controller?    forum.springsource.org

Best Practice for Stateful Controller? I am about to begin work on a new application and am looking to figure out the best practices approach to build it with given the ...