Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What is ejb home object?

0 Answers  


Match the ejb functions given below with the functionality equivalent in sql?

0 Answers  


What is the new basic requirement for a cmp entity bean class in 2.0 from that of ejb 1.1?

0 Answers  


Where is ejb used?

0 Answers  


What is stateless programming?

0 Answers  


What are the steps involved in creating a Bean?

2 Answers  


What do you mean by bean managed transaction?

0 Answers  


What’s the difference between hibernate and ejb 3?

0 Answers  


Explain transaction and various methods to manage it?

0 Answers  


For ejb applications with bean-managed transaction demarcations, which of the following is used by the client to get a reference to the usertransaction object for the weblogic server domain?

0 Answers  


What is the purpose of ejb in java?

0 Answers  


Elucidate callback in ejb?

0 Answers  


Categories