-----Original Message-----
From: Daniel Lopez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 04, 2000 6:55 AM
To: Perry Hoekstra
Cc: [EMAIL PROTECTED]
Subject: Re: JSP Architectural Question
Hi Perry,
I don't know who are you talking to ;), but I had to face a similar
problem so...
We recently developed an application using the Model2 approach following
aproximately the same pattern you described and using EJB. Our first
straight forward implementation used to put the resulting EJBeans in the
request so the JSP page would be able to use them. But then we were
getting in trouble because every call to the EJBean from the JSP page to
retrieve the name, address... whatever was being translated into an RMI
call so we were having too much useless RMI traffic. So we ended up
creating a lightweight version of the EJBeans, called VOBean (ViewOnly)
that just has the get methods and produces no RMI traffic. We created a
small utility to fill up this VOBeans automatically through reflexion
and alehop!
I wish there were something in EJB to avoid having to go through the
network when you are in the same JVM, but...
Regards,
Dan
Numerous EJB server have under the cover optimizations that detect an
inter-VM call so that you do not incur the overhead of a remote invocation.
I take it the one you were using did not.
Perry Hoekstra
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html