0 Replies Latest reply on May 21, 2008 1:17 PM by Alexander Lengson

    Getting know the calling party of the method invokation

    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?


      Thanks.