0 Replies Latest reply on May 19, 2008 3:11 PM by Alexander Lengson

    Double dispatching: identify yourself to another bean

    Alexander Lengson Newbie

      Hello All,

      Is there a special way in JBoss a bean/service could identify itself to another bean/service?
      Let's say, we have some beans which make a call to a special bean, called Dispatcher. We want Dispatcher to replicate that call to all of beans but originator. To do that, we need to enumerate all beans injected previously into Dispatcher and make call to them, just skipping originator only. How do we identify originator among all of them? We probably can't pass 'this' to Dispatcher as 'this' might be mangled through all of invocations. Is there an alternative way to do that?