Local interface client view

5 March 2012 By Nithya Vasudevan 1,669 views No Comment
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×
  • A local client is a client that is in the same JVM with the session bean that provides the local client view.
    • For example, EJB deployed in JBoss container and servlet client deployed in the SAME JBoss container.
  • A local client of a session bean may be another enterprise bean or a web component.
  • Access to an enterprise bean through the local client view requires the collocation in the same JVM of both the local client and the enterprise bean.
    • The local client view therefore does not provide the location transparency provided by the remote client view.
  • To provide a local interface view for the client, the business interface of the bean should be annotated with @Local.

import javax.ejb.Local;

public interface HelloWorld {
	String sayHello();

Tags: , , , ,