This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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).