This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
You need to be very precise here. There are two possibilities; either you separate the Web server(something like Apache or IIS) from the Application Server (which contains both the Web Container and EJB Container) or you can separate the Web Container from the EJB Container. Which do you really mean? Kyle [ December 20, 2003: Message edited by: Kyle Brown ]
In your particular scenario, I'd use Spring on Tomcat to inject the remote EJB (presumably EJB 3) instances. Look into Spring support for @EJB, @Resource and the <jee:jndi-lookup> element. Otherwise, you can have OpenEJB on Tomcat do the remote injection for you, but that is a little overkill in this case since all you really need is injection and not other EJB container services.
Hope it helps,
Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1