What is the difference between Stateless and Stateful Session Bean. Give a very simple and efficient example

Questions by questioninterest

Showing Answers 1 - 6 of 6 Answers

Ram ji soni

  • Dec 6th, 2006
 

The user can not identified that the bean is stateful or stateless whenever he would not see the web.xml file, there s only one entry in ds file dat d bean is srateul or stateless.

Main Difference:

Statefull: 1.User call create method and now container chance, it call ejbcreate(), ejbactivate() and ejbpessivate() method.

2. it persist the user state.

1.Stateless: The container does not call ejbactivate() and ejbpassivate() coz it does not maintain state.

2.It does not persist state.

any thing else. if not clear mail me i would provide the whole solution with example.

  Was this answer useful?  Yes

surya kumari

  • Jan 2nd, 2007
 

Can u tell me with an example

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions