Which statements about a session bean class are true?

Options
- It is a final class
- Overloaded constructors are supported
- Their business methods can be 'private'
- The ejbCreate() method must not be a final method


CORRECT ANSWER : The ejbCreate() method must not be a final method

Discussion Board
Session Bean

Session bean in EJB consists of the business logic and the implementation methods are as follows:

1) The bean methods should be declared in the remote interface. 2) The bean application consists of one class, which is used to retrieve the information from the methods.
3) The methods are usually declared in the SessionBean or EntityBean interface.
4) The ejbCreate() methods corresponds to the create methods are declared in the home interface. The container of the bean invokes the ejbCreate() method when the client invokes the corresponding create method.

Interface bean implements the methods within the SessionBean or EntityBean. Session bean is used for process oriented beans which perform tasks to achieve an end or output as per the input given.

Rohit Sharma 08-19-2014 06:19 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement