Interview Tutorials

81. Interview Question: Why are some of the class and element names counter-intuitive?

By: Ash : 2008-08-13

Description: The framework grew in the telling and, as it evolved, some of the names drifted.


82. Interview Question: Do ActionForms have to be true JavaBeans?

By: Ash : 2008-08-13

Description: The utilities that Struts uses (Commons-BeanUtils since 1.1) require that ActionForm properties follow the JavaBean patterns for mutators and accessors (get*,set*,is*).


83. Interview Question: What is EJB container?

By: Ash : 2008-08-13

Description: An EJB container is a run-time environment that manages one or more enterprise beans.


84. Interview Question: What is Deployment descriptor?

By: Ash : 2008-08-13

Description: A deployment descriptor is an XML file packaged with the enterprise beans in an EJB JAR file or an EAR file. It contains metadata describing the contents and structure of the enterprise beans, and runtime transaction and security information for the EJB container.


85. Interview Question: What is EJB client JAR file?

By: Ash : 2008-08-13

Description: An EJB client JAR file is an optional JAR file that can contain all the class files that a client program needs to use the client view of the enterprise beans that are contained in the EJB JAR file. If you decide not to create a client JAR file for an EJB module, all of the client interface classes will be in the EJB JAR file.


86. Interview Question: What is Local client view in EJB?

By: Ash : 2008-08-13

Description: The local client view specification is only available in EJB 2.0. Unlike the remote client view, the local client view of a bean is location dependent. Local client view access to an enterprise bean requires both the local client and the enterprise bean that provides the local client view to be in the same JVM.


87. Interview Question: What is Remote client view?

By: Ash : 2008-08-13

Description: The remote client view specification is only available in EJB 2.0. The remote client view of an enterprise bean is location independent. A client running in the same JVM as a bean instance uses the same API to access the bean as a client running in a different JVM on the same or different machine.<


88. Interview Question: Can I invoke Runtime.gc() in an EJB?

By: Ash : 2008-08-13

Description: You shouldn't. What will happen depends on the implementation, but the call will most likely be ignored.


89. Interview Question: What are the optional clauses in EJB QL?

By: Ash : 2008-08-13

Description: WHERE and ORDERBY clauses are optional in EJB QL where as SELECT and FROM are required clauses.


90. Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

By: Ash : 2008-08-13

Description: Home Interface is the way to communicate with the container which is responsible for creating , locating and removing beans and Remote Interface is the link to the bean that allows acces to all methods and members.