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
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 |
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 |
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 |
what is mean by RMI ? Please answer me. Advance thanks.
how to deploy enterprise javabeans?
What are the types of ejb?
When was ejb developed?
how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean?
Can Container Managed Bean-Managed Transaction ?
What Is EJB Clustering? Explain the Functionality?
1 Answers Business Architectures, College School Exams Tests, HCL,
What are the steps involved in creating a Bean?
What is ejb and how it works?
What is Session Bean Interface?
what are required main interfaces in EJB?
What is meant by ejb?