I would not use EJBs unless your application warrants it. If your team is
green and you are on a very tight schedule I would not try to use EJBs.
They add a whole new level of complexity and if you do not design your EJB
implementation correctly you will have performance issues to deal with.
The advantages of using EJB's are scalability since your EJB's can run on
servers other than your webserver and can service multiple webservers. You
also can have more than one EJB server that support multi-server
transactions.
Disadvantages are added complexity, all calls to EJB's are remote even if
your EJB server is on the same machine, even calls from one EJB to another
is remote. For significant applications you will have poor performance
unless you control the way your EJB's are accessed. There are a number of
design patterns for doing this. One common fallacy is to just make all your
domain objects EJB's. This is what we all want to do but it results in a
unreliable (since everything is remote) and poor performing system.
It may sound like I don't like EJB's but that is not true. I think they are
a great idea but I'm just warning that there are many complex issues
involved in implementing a successful application using EJBs.
Kent
----- Original Message -----
From: Tom Gordon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 16, 2000 2:37 PM
Subject: Re: Using EJB or JavaBeans ( MCV architecture )
> Hi, I am also pondering whether to use EJB in conjunction with JSP and
> servlets. Did you ever get an answer to this question?
>
> Thanks,
> Tom
>
>
> "Bragg, James" wrote:
> >
> > What is the advantage of using EJB over JavaBeans (as the Model) in an
web
> > based application in which JSP will be used for Presentation(View), and
> > Serlvets as the Controller.
> >
> > If I wasn't using Servlets as the Controller, I could seen the need for
EJBs
> > over JavaBeans for Security, Transaction Management and Session
control...
> >
> > Problem is that I have a very small, very green(new to these
technologies)
> > develpment team trying to learn and develop this application in a very
short
> > timeframe. So the issue is do we include EJB and increase risk of
missing
> > target date, or settle for JavaBeans and reduce the capabilies of the
web
> > app.
> >
> > What is Advantage of using EJB over JavaBeans when used as the Model?
> >
> > thanks..
> >
> > James
> >
> >
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets