generally spoken to have two remote JAVA application communicating
together you have to use RMI/IIOP protocol (you might start with
tutorial at Sun site - http://java.sun.com/docs/books/tutorial/rmi/).
The RMI/IIOP communication happens as well in J2EE world, it is just
provided automatically by your application servers (if configured
properly).
So, I do believe that you either add an RMI code to your servlets and
you 'manually' connect to remote ejb server, or you add your PC into
a cluster (using some administration tool of your application server)
with an EJB application server and you modify the XML properties of
your client and ejb applications, making the
application "distributed".