This content has been marked as final.
Show 3 replies
-
1. Re: Problems with multiple interfaces
kabirkhan Nov 4, 2005 8:51 AM (in response to jacekolszak)I'm not sure for embedded, but here's what happens in the "real" version.
If you have two interfaces, it will bind under the name of the first one only (as returned by Class.getInterfaces()). If you want more control, you can use the @LocalBinding annotation -
2. Re: Problems with multiple interfaces
kabirkhan Nov 4, 2005 8:54 AM (in response to jacekolszak)...meaning the proxy that gets bound under BBLoca limplements both BBLocal and BSLocal
-
3. Re: Problems with multiple interfaces
jacekolszak Nov 4, 2005 9:53 AM (in response to jacekolszak)?? Don't understand :(
I've read the trailblazer and found that it is posible to set local interfaces in bean class using @local annotation:
So I've created a class:@Local( { BBLocal.class, BSLocal.class }) public BankBean { }
It isn't work too. When I try to lookup into BBLocal or BSLocal I get a NameNotFoundException. But when I put only one interface in @local annotations its works.:@Local( { BBLocal.class } ) public BankBean { }
Regards
Jacek