• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

Local Interface Limitation

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So are you agreeing that b) is infact TRUE ?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes
 
This one time, at bandcamp, I had relations with a tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic