how can we decide a session bean as stateless or stateful
without seeing jar file? i.e. by seeing the class file.

Answers were Sorted based on User's Feedback



how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing ..

Answer / king

A bean is stateful or stateless can be inferred from its
deployment descriptor.
i.e
ejb-jar.xml
<session-type>Stateless</session-type>

Is This Answer Correct ?    8 Yes 0 No

how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing ..

Answer / vishal chougule

If u just want by looking at class file then pre condition is that u have some parameters to create method.. meaning if u have bean class file with ejbCreate with paramaters then it is for sure stateful else it can be stateful or stateless.

Is This Answer Correct ?    2 Yes 0 No

how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing ..

Answer / hemalatha

Session beans are non-persistent enterprise beans. They can
be stateful or stateless. A stateful session bean acts on
behalf of a single client and maintains client-specific
session information (called conversational state) across
multiple method calls and transactions. It exists for the
duration of a single client/server session. A stateless
session bean, by comparison, does not maintain any
conversational state. Stateless session beans are pooled by
their container to handle multiple requests from multiple
clients.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More EJB Interview Questions

How can enterprise javabeans be accessed from active server pages?

0 Answers  


whatis the diff between ejb and servlet/jsp

6 Answers   TCS,


What are the differences between ejb 3.0 and ejb 2.0?

0 Answers  


What is EJB server?

0 Answers  


How many ejb objects are created for a bean?

0 Answers  






Basic types of Enterprise JavaBeans?

4 Answers   TCS,


Can you be deported if you are stateless?

0 Answers  


What do you understand by annotation in ejb to do the database entity relationships/mappings with examples?

0 Answers  


Where a bean can be used ?

1 Answers  


How is consistency maintained by Stateful Session through transaction updates ?

0 Answers  


What is EJB server provider?

0 Answers  


What is the use of @resource?

0 Answers  


Categories