Hello,
Is it possible to apply mixins to EJBs that are used remotely?
I have a bean FooBean that I want to add features to using a mixin. So I wrote IBarBean and BarBean to implement these features and using an introduction I apply the mixin to FooBean.
Now, my problem is that the client accesses FooBean remotely through a Proxy (ClientContainer?) and, even though FooBean implements IBarBean, it seems like the remote proxy doesn't. So when I try to cast the remote proxy into an IBarBean, I get a ClassCastException.
I tried to make IFooBean (the interface generated from FooBean by XDoclet, which is implemented by the remote proxy) extend IBarBean but it doesnt't work.
So, is it possible to make an interface extend another one using introduction? Or more generally, is it possible to apply a mixin to an EJB that is used remotely?
Thanks!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885291#3885291
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885291
|