These are different applications but are web modules inside the same EAR.
Now, I'm using two separated Tomcat instances running in different ports and AJP connectors, but I want to move to EJB and share application logic through web applications. Also I want to use Local interfaces only.
GlassFish or JBoss AS are the applications servers that I'm considering use.