• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Architecture Doubt..

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am working with an EJB Application. We are using the
following kind of architecture.


<pre>
| | | | | |
|HTML/JSP |----> | Controller Servlet | -----> | EJB |
| |<---- | | <----- | |
</pre>



As Per one of my friends, the use of Controller servelet is
inappropriate as it causes Marshelling remote call - which
is true. He advices to use Session beans. But my doubt is
whether the use of Session bean that will invoke EJB would
involve Remote Calls? or is it a local interaction when we
have both in the same Container...

Any thoughts? please air...


------------------
Take care
r@njith
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But my doubt is whether the use of Session bean that will invoke EJB would involve Remote Calls? or is it a local interaction when we have both in the same Container...

regardless of whether the calling entity is a servlet or a session bean, it's always a call via a remote reference, hence always a remote call.

the use of Controller servelet is inappropriate as it causes Marshelling remote call

can you elaborate on this. i'm not sure what you mean. you should be able to call ejb's from servlets with no problems.
regards,
-miftah
 
Ranjith R
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanx! doubt cleared!
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic