Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop EJB applications > Develop session beans > Develop a session bean to have a No-Interface Local View
No-Interface Local View
New in 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 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.
Develop a session bean to have a No-Interface Local View