-
-
-
Why are ejbActivate() and ejb Passivate() included for stateless session bean even though they are never required as it is nonconversational bean
To have a consistent interface, so that there is no different interface that you need to implement for Stateful Session Bean and Stateless Session Bean. Both Stateless and Stateful Session Bean implement javax.ejb.SessionBean and this would not be possible if stateless session bean is to remove ejbActivate and ejbPassivate from the interface. You could argue that the two (stateful and stateless) are...
-
-
-
Does Stateful Session bean support instance pooling
Answer posted by Mohan on 2005-05-21 19:24:23: All Beans support Instance Pooling
-
What is the difference between ejbStore() and ejbLoad()
Answered by Jey on 2005-05-08 11:06:46: When the EJB container needs to synchronize the instance variables of an entity bean with the corresponding values stored in a database, it invokes the ejbLoad and ejbStore methods. The ejbLoad method refreshes the instance variables from the database, and the ejbStore method writes the variables to the database. The client cannot call ejbLoad...
-
-
-
-
-
-
-
-
-
-
What is lazy loading
Answered by Nikhil on 2005-05-11 11:28:14: Lazy loading is a characteristic of an application when the actual loading and instantiation of a class is delayed until the point just before the instance is actually used. The goal is to only dedicate memory resources when necessary by only loading and instantiating an object at the point when it is absolutely needed. Tools such as Eclipse have...
-
What is difference between EJB 1.1 and EJB 2.0
Answered by Jey on 2005-05-08 12:51:03: EJB 2.0 adds the local beans, which are accessible only from within the JVM where beans are running in. In EJB 1.1, we had to implement remote client views for all these beans, even if we had no remote clients.
-
What is Session Bean. What are the various types of Session Bean
Answer posted by Mohan on 2005-05-20 08:44:39: SessionBeans typically are used to represent a client they are of two typse Stateful Session Beans : they maintain conversational state between subsequest calls by a client Stateless Session Bean : consider this as a servlet equivalent in EJB. It is just used to service clients regardless of state and does not maintain any state....
-
EJB Interview Questions
Ans