aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Local Interface Limitation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Local Interface Limitation" Watch "Local Interface Limitation" New topic
Author

Local Interface Limitation

Tanya Evans
Greenhorn

Joined: Jan 30, 2004
Posts: 7
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
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
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).
Tanya Evans
Greenhorn

Joined: Jan 30, 2004
Posts: 7
So are you agreeing that b) is infact TRUE ?
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
Yes
 
jQuery in Action, 2nd edition
 
subject: Local Interface Limitation