3 Replies Latest reply on May 27, 2006 3:47 AM by martinganserer

    Distinguish between remote and local call

    martinganserer

      Hello,

      would it be possible to determine if a call of a stateless session bean came from the remote or the local interface.

      Thank you very much!

        • 1. Re: Distinguish between remote and local call
          mazz

          isn't that the purpose of having separate remote and local interfaces?

          you are probably doing the design pattern where your EJB has one main interface that extends both the remote and local (where the method names/sigs are identical).

          You would have to abandon that design pattern and use the remote and local interfaces as they were intended :-)

          Unless JBoss EJB impl has some feature I am not aware of.

          • 2. Re: Distinguish between remote and local call
            bill.burke

            Actually, SessionContext has a method on it getInvokedBusinessInterface() but unfortunately, we haven't implemented it yet.

            • 3. Re: Distinguish between remote and local call
              martinganserer

              Hello Bill,

              do you see any chance that you guys will implement this method in one of the next releases? I am not sure if other developers need this feature but it would be really interesting for our custom security system where we only want to check authorization of a method if the call came from a remote client.

              Thank you!