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.
Actually, SessionContext has a method on it getInvokedBusinessInterface() but unfortunately, we haven't implemented it yet.
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.