Hello frends,
I came across a point in
EJB specification which states that
� A bean class is permitted to have more than one interface. If a bean class has more than one interface�excluding the interfaces listed below�any business interface of the bean class must be explicitly designated as a business interface of the bean by means of the Local or Remote
annotation on the bean class or interface or by means of the deployment descriptor.
But I want to understand one thing:
I have 3 interface for helloWorld bean assume hello1,hello2,hello3.
So I will write the bean as either
is this program compile
Then what are the remote and Local interface
According to my understanding it should be
Remote hello1 and hello2
Local hello3 by default.
Please tell me am i correct. and if the above program is changed as
then the local interfaces are hello1, hello2,hello3.
But the above statement says If a bean class has more than one interface�excluding the interfaces listed below�any business interface of the bean class must be explicitly designated as a business interface of the bean by means of the Local or Remote annotation on the bean class or interface or by means of the deployment descriptor. there is contradiction here by default the interface are local or to
explicitly mark them as Local or remote