According to the EJB 3.1 specification, you can use the @EJB annotation for various clients, including servlets, which are your case.
The problem is that you are using the client and server on different hosts. Depending on the server you are using, you may use EJB annotation. This post explains how to do this in Weblogic.
Needless to say, you should define the EJB server as @Remote anyway.
source share