[jboss-user] [EJB 3.0 Users] - Re: Remote and local interface on same ejb instance

Wolfgang Knauf do-not-reply at jboss.com
Wed Nov 18 07:30:34 EST 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266276#4266276

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266276



More information about the jboss-user mailing list