You can do so. The Tomcat applications are then simply a remote client to JBoss. However, you lose out to issues of connection times and scaleability. You will need the JBoss client library/libraries in the Tomcat shared/lib directory to be able to connect/communicate with JBoss EJBs.
Yes, I understand that, but after reading a few documents regarding "collocation" of servlets and ejbs and how it helps improve performance, perhaps it is not such a good idea to separate the web and ejb containers since communication between the two would always require RMI.
If I deploy JBoss with embedded Tomcat on the same physical server, does this achieve collocation?