Tell me something about Local Interfaces.


EJB was originally designed around remote invocation using the Java Remote Method Invocation (RMI) mechanism, and later extended to support to standard CORBA transport for these calls using RMI/IIOP. This design allowed for maximum flexibility in developing applications without consideration for the deployment scenario, and was a strong feature in support of a goal of component reuse in J2EE. Many developers are using EJBs locally, that is, some or all of their EJB calls are between beans in a single container. With this feedback in mind, the EJB 2.0 expert group has created a local interface mechanism. The local interface may be defined for a bean during development, to allow streamlined calls to the bean if a caller is in the same container. This does not involve the overhead involved with RMI like marshalling etc. This facility will thus improve the performance of applications in which co-location is planned. Local interfaces also provide the foundation for container-managed relationships among entity beans with container-managed persistence.



Explore posts in the same categories: EJB Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What are the special design care that must be taken when you work with local interfaces ?
  • EIt is important to understand that the calling semantics of local interfaces are different from those of remote interfaces. For...
  • What is Local client view?
  • The local client view specification is only available in EJB 2.0. Unlike the remote client view, the local client view...
  • What are Local Interfaces? Describe.
  • EJB was originally designed around remote invocation using the Java Remote Method Invocation (RMI) mechanism, and later extended to support...
  • Brief description about local interfaces ?
  • EEJB was originally designed around remote invocation using the Java Remote Method Invocation (RMI) mechanism, and later extended to support...
  • What is the relationship between local interfaces and container-managed relationships?
  • Entity beans that have container-managed relationships with other entity beans, must be accessed in the same local scope as those...
  • What is the difference between find and select methods in EJB?
  • A select method can return a persistent field (or a collection thereof) of a related entity bean. A finder method...
  • What are different types of inner classes?
  • Nested top-level classes, Member classes, Local classes, Anonymous classes Nested top-level classes- If you declare a class within a class and...
  • What are different types of inner classes?
  • Nested top-level classes, Member classes, Local classes, Anonymous classes Nested top-level classes- If you declare a class within a class and...
  • What is a Java package and how is it used?
  • A Java package is a naming context for classes and interfaces. A package is used to create a separate name...
  • What is a local class? Why can it be useful?
  • Local class is a class defined within the scope of a function -- any function, whether a member function or...

    Comment:

    You must be logged in to post a comment.