You may even be able to just inject the remote interface if it is really running on the same server.
context = new InitialContext(); // lookup bean
Slawomir wrote:Well what that does is turn your EJB into a JAX-WS webservice (in other words: a SOAP service). That makes it easier to open it up to the outside world, sure. Its even portable, you could access the webservice from something else than Java.
There is said using @WebService and @WebMethod annotations I could make my EJB class accesible for web clients. Then I don't need to