EJBs are not necessarily 'heavy weights' in terms of performance.
There may be a significant overhead in terms of resources and
management by the EJB container, and there may be an initial
performance decrement when an application starts up, due to caches
filling, etc. But (surprisingly) performance metrics show that data
access in an application using EJBs can often outperform an
application using straight JDBC calls because it is generally quicker
to retrieve cached EJB data than perform a full database query.
Naturally it depends on the type of database queries and the
application architecture, but EJBs are not necessarily inferior in
performance terms.
Recent studies have shown that in typical commercial J2EE
applications, it is the database that is the main bottleneck in
application performance under load.
Dave
> Sio,
>
> I do not understand you question "is it still J2EE compliant?". J2EE
> is a colection of technologies including JSP, Servlets, JDBC ,JTS, JTS,
> JMS, JASS etc. etc. They are in fact tools and you should select the best
> ones or combinations for the job. if you buisness needs mean that you
> leave one or more out then what has that got to do with complience?
>
> With regard to performance EJBs are a heavy weights. If you are
> meeting you buisness requirements and not using them then as they say If
> it's not broken dont fix it" However EJB's may well prove to be usefull
> on mor ways that just provide tranactions. they are a way of encapsulating
> buisness logic and packiagin in a a way that lends it self to reuse which
> may prove more valuable in the long run.
>
>
> Julian
>
>
>
> > Hi,
> >
> > I've just started learning EJB and I'm wondering if using EJB is
> really
> > essential in internet applications. How does the performance of an
> internet
> > app/website get affected with and without using EJB? If a website uses
> > Servlet, JSP, and have it's own transaction management but does not
> utilise
> > EJB, is it still J2EE compliant?
> >
> > Appreciate if anyone would help clear these doubts.
> >
> >
> >
> > Regards,
> > Sio Poh
> >
>
>