I'm a complete newbie to EJB and Java EE in general. I am going through this netbeans tutorial on remote EJBs, which is cool in itself. But one thing I want to know is why are they doing a tutorial on remote EJBs, when the tutorial is launching both the client app and the server side on the same app server? This is confusing me.
I was under the impression that if you use EJBs and the client and server are on the same JVM then use local interfaces, but if the client and server are on different JVMs (i.e. different computers), then use remote interfaces. This tutorial seems to go against that logic. Am I right/wrong here? Or does "remote" refer to the client and server not being a part of the same java project/deployment war/ear on the app server?