1. I changed only
<session-type>Stateful</session-type>
to
<session-type>Stateless</session-type>
and it worked. How is it possible? Can someone please explain to me how all the instance variables etc still work?
I tried this on WebSphere 4.x
Thanks
-
Converting Stateful to Stateless SessionBean? (2 messages)
- Posted by: Nader Aeinehchi
- Posted on: January 27 2003 05:58 EST
Threaded Messages (2)
- Converting Stateful to Stateless SessionBean? by Seemanto Barua on January 27 2003 09:08 EST
- Converting Stateful to Stateless SessionBean? by kapil kapil on January 29 2003 00:07 EST
-
Converting Stateful to Stateless SessionBean?[ Go to top ]
- Posted by: Seemanto Barua
- Posted on: January 27 2003 09:08 EST
- in response to Nader Aeinehchi
dont think that that the state of your stateless session bean is maintained. It totally depends on the server when to do away
with an instance of a stateless session bean and what is happening in your case is that you have the same instance beign used across subsequent method calls. But that's totally in the descrition of the container it can destroy the instance anytime and that will happen in a quicker time if u have a large number of beans active in the container. -
Converting Stateful to Stateless SessionBean?[ Go to top ]
- Posted by: kapil kapil
- Posted on: January 29 2003 00:07 EST
- in response to Nader Aeinehchi
Your ejbCreate might be having no arguments in both the cases.The working of the session statefull and stateless beans depends upon container how it manipulates iys life cycle.