This content has been marked as final.
Show 3 replies
-
1. Re: Remote and local interface on same ejb instance
jaikiran Nov 16, 2009 9:00 AM (in response to zlajaj)Sorry, but i did not understand your question. Can you please elaborate on what you are doing?
-
2. Re: Remote and local interface on same ejb instance
zlajaj Nov 16, 2009 12:45 PM (in response to zlajaj)Thanks for reply
I have three stateful beans A,B and C. Beans B and C are parts of A bean and A bean access it through local interface. Is ti posible to create remote interface for same instances, B and C beans, and delegate it to remote client.
This means thath both clients, A bean and remote client, operate on same bean instance.
Thanks
Zlaja -
3. Re: Remote and local interface on same ejb instance
wolfgangknauf Nov 18, 2009 7:30 AM (in response to zlajaj)Hi,
do you mean something like this?@Stateless public class ABean implements ARemote { //Access B and C through local interface? @EJB private BBean; @EJB private CBean; } @Remote public interface ARemote { } @Stateless public class BBean implements BLocal { } @Local public interface BLocal { } @Stateless public class CBean implements CLocal { } @Local public interface CLocal { }
If not, please modify my sample. Currently, I don't get your question ;-).
Best regards
Wolfgang