I created a simple ear with ejb and war. The ejb module contains hello-world ejb (ejb "A"). The war module contains a REST-enabled ejb (ejb "B"). The ejb "B" has one @EJB-annotated field referring to EJB "A" and one REST-enabled method. This method proxies an invocation to ejb "B" method.
I use utility "curl" for testing the application. Jboss reports an exception when I try to invoke the REST-enabled method.