Can we decide a session bean as stateless or stateful without seeing jar file?

Can we decide a session bean as stateless or stateful without seeing jar file?

A bean can be determined whether is a stateless or stateful by analyzing the deployment descriptor ejb-jar.xml.

The tags <session-type></session-type> provides the information. Stateless or Stateful words need to be placed between begin and end tags.

For example:
<session-type>Stateless</session-type>
Or
<session-type>Stateful</session-type>
What is non static block in java?
The non-static block code is executed when a new class is instantiated. It executes before the constructor’s execution...
Explain how to sort the elements in HashMap - Java
The elements of HashMap can be sorted by using the static method Collections.sort()...
Difference between Checked and Unchecked exception
A checked exception throws a block of code and represented by the throws keyword...
Post your comment