• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local Interface Limitation

 
Tanya Evans
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5782
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tanya Evans
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So are you agreeing that b) is infact TRUE ?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic