Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can Stateful session bean behave like stateless bean  RSS feed

 
sachyav
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sachyav
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Rahul Mahindrakar
Ranch Hand
Posts: 1869
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!