Forums Register Login

change stateless to stateful session bean

+Pie Number of slices to send: Send
Lets say I have a stateful session bean performing some business logic. Lateron, I find that I could have as well made it as stateless session bean. Do I just have to change the <session-type> to stateless? Or is there anything else I need to do?
+Pie Number of slices to send: Send
If you used any latent state (e.g. instance variables) to hold information between method invocations you'd need to move that to a persistent store like a database.
Kyle
+Pie Number of slices to send: Send
Also, You may know that, If you change from Stateful to Stateless, any create() methods you have for stateful beans with arguments have to be changed to one create() method with no arguments for the stateless session bean.
Hoo hoo hoo! Looks like we got a live one! Here, wave this tiny ad at it:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 720 times.
Similar Threads
JPilot,, Java ranch exam question ID: 17
Stateless Bean Calling Stateful Bean
Session facade
Change Stateful session bean to stateless
instance variable in session EJB
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:41:34.