No-Interface Local View

New in Enterprise JavaBeans (EJB) 3.1, session beans might now be exposed to clients through a No-Interface view. In prior versions of the specification, bean developers were required to provide an interface that would be used to expose the bean methods to a client.

The new No-Interface Local View enables the customer to use the Enterprise JavaBeans (EJB) class as the local interface. This is supported when:
  • The bean does not expose any other client views (Local, Remote, 2.x Remote Home, 2.x Local Home, Web Service) and its implements clause is empty.
  • The bean exposes at least one other client view. The bean designates that it exposes a no-interface view by means of the @LocalBean annotation on the bean class or in the deployment descriptor.