• Post Reply Bookmark Topic Watch Topic
  • New Topic

Architecture Doubt..  RSS feed

 
Ranjith R
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
thanx! doubt cleared!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!