value
Specifies the list of local interfaces as an array of classes.
You are required to specify this attribute only if your bean class implements more than a single interface, not including the following:
java.io.Serializable
java.io.Externalizable
javax.ejb.*
Perseverance is best when informed.
Could you please tell me if the interface IBEAN in that case is considered as a local business view or not?
4.9.7 Session Bean’s Business Interface
The bean class must implement the interface or the interface must be designated as a local or remote business interface of the bean by means of the Local or Remote annotation or in the deployment descriptor.
The following rules apply:
- If the bean does not expose any other business interfaces (Local, Remote) or No-Interface view, and the bean class implements a single interface, that interface is assumed to be the business interface of the bean. This business interface will be a local interface unless the interface is designated as a remote business interface by use of the Remote annotation on the bean class or interface or by means of the deployment descriptor.
Perseverance is best when informed.
Tarik Aazizi wrote:Thanks Frits for your reply, So this means that in this case IBean will not be a Local business interface (as it expose a No-Interface View)? could you please confirm ?
By the way, Thanks a lot for your notes
Designates that a session bean exposes a no-interface view.
Designates that a session bean exposes a no-interface view.
This annotation is required if a session bean exposes any other client views (local, remote, no-interface, 2.x Remote Home, 2.x Local Home, Web Service) in addition to the no-interface view or its implements clause contains an interface other than java.io.Serializable; java.io.Externalizable; or any of the interfaces defined by the javax.ejb package.
This annotation is optional if a session bean exposes only a no-interface view.
Perseverance is best when informed.
Consider Paul's rocket mass heater. |