Forums Register Login

Can Stateful session bean behave like stateless bean

+Pie Number of slices to send: Send
Hi
anybody can tell me that is it possible to
make an stateful session bean to stateless session bean.
if yes then please tell How?
thanx
sachya
+Pie Number of slices to send: Send
Can you clarify what you mean please? I take it you mean something other than "can I change the code after its written". What feature of stateless beans in particular are you looking for? What problem are you trying to solve?
Kyle Brown
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
+Pie Number of slices to send: Send
hi
Thanx for reply.
As you know how stateless and stateFul bean behaves.
Actually i want to write StateFul bean but it should behave like stateless.
I mean to say , are there any method in the javax.ejb.enterpriseBeans or in session bean so that your Stateful session bean shuold work like stateless session bean (that is its life cycle shoul change to stateless session bean.).
If you know then please specify , how to achive it?

sachya


+Pie Number of slices to send: Send
 


so that your Stateful session bean shuold work like stateless session bean (that is its life cycle shoul change to stateless session bean.


At runtime it is not possible. It is only in the deployment time when you specify what type of bean it is ie Stateless/Stateful will a stateful bean work like a stateless.
Rahul
+Pie Number of slices to send: Send
"sachyav"
Welcome to Javaranch. We follow certain conventions with respect to the User name as given in the document here .
Your user name does not follow these conventions. Please re-register with a name following these conventions.
Thanks.
------------------

Mahindrakar
IBM Application Server & Developer Forum Moderator

Consultant - Zensar Technologies ,Pune India.
SCJP2, SCJD2 & SCJEA (Part I)
Get off me! Here, read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 727 times.
Similar Threads
General Question
General Question
Sessions
SessionSynchronization interface & session bean
can we write socket programming inside the bean class business method?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:14:08.