-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hani Suleiman
Sent: Tuesday, October 10, 2000 3:41 AM
To: Orion-Interest
Subject: RE: EJB vs ServletsI've considered using EJB's a number of times for various projects I'm involved in, but every time, I have to admit to myself that it's more for the fun and coolness factor, than any real 'need' to use EJB's.
In every case, I was able to implement a solution using servlets with various caches to do whatever is needed much faster than an EJB would do things (as far as I can tell, I haven't put this theory to the test yet though!). Here are some examples of EJB features and ways to get the same thing without EJB's..
1) Connection pooling: This is available everywhere, and everyone can reap the benefits of it while being perfectly EJBless.
2) Transaction support: Stored procedures can take care of this.
3) Caching of database objects: Pretty easy to implement
4) Failover/load-balancing: As Kevin mentioned, works very nicely for servlets.Having said all that though, I'm still going to try and use EJB's in my current project, and port all the existing 'model' objects to become full fledged EJB's. I'm hoping the advantages will become apparent then!
Also, does anyone have any concrete examples of EJB's performance/scalability? Has anyone deployed them in a high volume production environment? Most people seem to be using them for prototyping and small scale projects, that I know of...
Hani Suleiman
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Duffey, Kevin
> Sent: Monday, October 09, 2000 1:22 PM
> To: Orion-Interest
> Subject: EJB vs Servlets
>
>
> Hey all,
>
> I know this is a little off-topic, but seeing as how Orion is
> about the only
> fully compliant EJB server, I figured this would be a better
> place to ask.
>
> Lately I have talked to a number of people that have been
> moving towards EJB
> and pulled back because they have found it to be more tedious
> to develop, as
> well as the end result was slower than just using Servlets.
>
> I ask this because it appears to me that the servlet engine
> (at least with
> 2.2) being able to be failed over, load-balanced, etc, seems
> to be quite as
> capable for scalability and fault-tolerance as the ejb engine
> used to be. I
> do realize that the EJB container offers transaction management, but
> connection pooling is available in the servlet engine at the
> server level as
> well. So, if you lose speed in development time and
> performance, what is the
> real benefits of moving to EJB? I should say this with
> caution..I am sure
> the EJB engine/container offers some things the servlet
> container doesn't,
> but I would think its possible to actually put those abilities in the
> servlet container.
>
> Anyways..I'll be interested in hearing any feedback on this.
>
> Thanks.
>
Title: RE: EJB vs Servlets
I use
EJBs in a high volume environment and have had no problems with scalability or
speed yet.
I have
to say once you know EJBs well enough, dev't is definitely faster than with
servlets. The sheer volume of JDBC code and debugging required in a servlet
outweighs the quick speed you can do the same thing in EJBs. (See ejb-maker for
an example).
Mike
- EJB vs Servlets Duffey, Kevin
- RE: EJB vs Servlets Russ White
- Re: EJB vs Servlets Miles Daffin
- RE: EJB vs Servlets Hani Suleiman
- Re: EJB vs Servlets Troy Echols
- Re[2]: EJB vs Servlets Rafael Alvarez
- Re: EJB vs Servlets Mike Cannon-Brookes
- Re: EJB vs Servlets Kyle Cordes
- Re: EJB vs Servlets Kyle Cordes
- Re: EJB vs Servlets Sven van 't Veer
- RE: EJB vs Servlets Duffey, Kevin
- RE: EJB vs Servlets Russ White
- RE: EJB vs Servlets Mike Cannon-Brookes
- RE: EJB vs Servlets Duffey, Kevin
- RE: EJB vs Servlets Russ White
- RE: EJB vs Servlets Reddy Krishnan
- Re: EJB vs Servlets Matt Brunner