You s'd not have any trouble calling a local ejb from within a java class as long as they are in the same VM.
You can easily test it.Write a simple
servlet and a local ejb. Access the ejb from within the servlet.
Deploy this ear and invoke the servlet using the mapped URL.