Hello Ranchers ,
I was reading this snippet in spec
3.4.4Session Bean’s No-Interface View
The container provides an implementation of a reference to a no-interface view such that when the client invokes a method on the reference, the business method on the session bean instance and any interceptor methods are invoked as needed.
I dint understood
"..any interceptor methods are invoked as needed.".Can someone explain me why would i require an interceptor and an example of a scenario will be very helpful.
The Spec has also mentioned very similar quote
3.4.3Session Bean’s Business Interface
The container provides an implementation of a session bean’s business interface such that when the client invokes a method on the instance of the business interface, the business method on the session bean instance and any interceptor methods are invoked as needed
Please help me on both of this quotes in context to interceptors.
Also can some one explain why can i call only public methods through a no interface view otherwise
EJBException.Why so the spec have made this as compulsion there must be some logic or reason behind which i am not aware ???
Regards,
Shroff.