-
-
-
-
-
What is local interface. How values will be passed
Answered by Jey on 2005-05-08 12:33:35: If Client and EJB classes are in the same machine ( Same JVM) then we can use Local linterface instead of Remote interface. Since Client and EJB are in same JVM, values are passed by referance.
-
-
-
-
-
Is there a way to get the original exception object from inside a nested or wrapped Exception (for example an EJBException or RemoteException)
Absolutely yes, but the way to do that depends on the Exception, since there are no standards for that. Some examples: ·When you have an javax.ejb.EJBException, you can use the getCausedByException() that returns a java.lang.Exception. ·A java.rmi.RemoteException there is a public field called detail of type java.lang.Throwable ·With a java.sql.SQLException you need to use the method getNextException()...
-
-
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....
-
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 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...
-
-
-
-
-
-
EJB Interview Questions
Ans