if client access some session bean on web application server
-
web server is used to deploy web component (e.g. servlet, jsp,...)
-
application server is used for enterprise application components & design to have EJB Container/server, web server, messaging,....
web application server can not deploy EJB. But an application server can deploy web application & EJB.
I hope you meant application server and not web application server.
that session bean access some other session bean on different physical server then we should use Remote Interface .
that other session bean should use (implement) remote interface, you are correct.
In one physical machine can we have 2 different JVM's
Open 3 command prompt & run same or three different Java programme at same time, you are already using 3 JVM on same machine.
" clients and EJB resides in same JVM " please clarify the statement
A client is who is asking for a service and a server (here server is server object and not application or web server) is who is asked for the service.
or
A client could be an application or object (a reference) who is requesting a service (called operation or method call) to a server object (EJB, other java object)
or
a client is an object which invoke / call the method and server (object) is whose method is called. Server object could be any Java object (an EJB is also a Java Object)
clients(servlet, another EJB, .....) and EJB (you want to call method of this EJB) resides in same JVM