Hi all,
I am working on my deployment diagram. My question is this :
I have read threads on this forum mentioning that one should co-locate the webcontainer and ejbcontainer on the same physical machine, same jvm. Doing this would allow say a
servlet make a call to an
ejb using the local ejb interface. This is the case say when you are starting a weblogic appserver or Sun GlassFish Enterprise Server. If you "translate" this to a deployment diagram, that would result in one physical node labeled "Application Server".
On this single node you would then show both your webcomponents (servlets,
jsp) and your ejb. Would it be more clear if you would draw two additional boxes inside the appserver node and label one "webcontainer" and the other "ejbcontainer" and make sure your components are in the appropriate boxes ?
The thing that worries me about this approach is that when I look at Cade's book or in the SL425 course of Sun (rev B), they always show two physical nodes, one webserver node and one appserver node meaning the servlets or
jsf managed beans must communicate with the ejbs using the remote ejb interfaces.
What am I missing here ? Were the diagrams in Cades book and in the SL425 course from Sun all drawn using the EJB 1.x spec when there were no local interfaces yet ? Has anyone used the approach I suggested above, one physical node subdivided in a webcontainer and ejbcontainer box ?
Regards