If you access EJB from a remote client there are wo approaches for that.
The remote-naming and the ejb-client (which is the recommended way).
It depends on the client, whether you are inside of a JBoss server or not, and the approach you use.
You might have a look into the ejb-client or remote-naming documentation.