Please can someone confirm the following statements :- a) A JSP/WEB client can access an EJB using local interfaces since the EJB and the WEB client reside within the same tier and JVM b) A JAVA Client (Swing application) cannot access an EJB using local interfaces since there will be two distinct JVM's c) A JSP client on Machine A can access an EJB on Machine B using local interfaces. Whats the answer ? A True B True C False
Here are some facts that may help you answer these questions - A local bean can only be accessed by a client that resides in the same JVM. And in general, it is a bad idea to assume your web clients and EJB container run in the same JVM. And, I've got to say this - it is a very bad idea to let the JSP pages directly access the EJBs. This is a big NO-NO!! The web and the EJB container may run in the same app server, but most likely your they are implemented as two different JVMs. Now try them
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).