Questions of Test: EJB Interview questions

More >>


In EJB 3.0 entity bean how many classes are required


Entity bean in EJB3.0 is still required to implment javax.ejb.EntityBean interface


In EJB 3.0 and higher versions, for container to understand it is an EJB, the bean class still implements EJBObject interface


In a Primary key class what is the purpose of the two methods, equals() and hashCode()


There is a method updateAddress() in Action class. Client has updated user last name and its address . updateAddress() method the action class after retrieving data from request , has to update the data in database.  
For this purpose this method calls getUser() , updateUser() and updateUserAddress() of UserSessionBean. These are three unique methods in the UserSessionBean . 
updateAddress() method throws some exception while updating . Action class handles exception and throws message to user. 
Assume it is Container Manage Transaction 
When next time client logs in (by opening new browser window), what he would see 


The client wants an application to be designed so that business layer is deployed as component different from web component. The architect suggest the use of EJB for business compnent and says that the EJB's  can be deployed as a .jar file and web component as a .war file 
But the client would use the same machine for deployment of war file and jar file. 
Now the architect is confused. Can you suggest which one of the options below are correct ? 


Can we have static initializer block in EJB ?


Whic of the below are true about EJB’s  ?


If I am using local EJB’s , can I use Apache tomcat as a container ?


What major improvement /new features EJB3.has seen over its predecessor versions? Choose all that apply

More >>