Ben,
As others have said -- if you're simply retrieving data from a database and
rendering it in HTML, you probably want to use servlets/JSPs with a JDBC
connection that supports connection pooling and possibly result set caching.
If your application consists of more complex transactions which involve the
instantiation of business objects, you'll start to really appreciate the
resource management services in a high-end EJB server, as well as the
automatic transaction control and state management.
An app server is like an object-oriented variant of a TP monitor. People use
them because they increase the top-end performance and scalability of your
system.
Anne
-----Original Message-----
From: Ben Engber [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 13, 1999 1:36 PM
Subject: EJBs and the internet
Does anybody have an idea whether it's appropriate to try and use EJBs in
an Internet application?
>From people I've talked to, most high traffic sites have given up CORBA
based appservers for direct database access because they just didn't
perform at traffic levels of more than a few hundred thousand page views
per day. I've been building a large application based on EJB, and am
concerned about performance.
I guess my question is what do EJB's buy me? It seems that they offer a
simplified programmatic interface for transactions, but at the expense of
performance. If that's the case, then I'd rather stay away from them.
On the other hand, it seems like Entity Beans could handle in-memory
caching of data, greatly reducing SELECTs on the DB. But my implementation
(WebLogic) doesn't do this implicitly, which makes me wonder again, what
are they for?
Similarly, I've been reading with interest the recent discussion about
moving entity bean finder methods over to session beans. It makes a lot of
sense to me. Can someone tell me the advantage of having these methods in
a session bean rather than in a regular Java class?
-Ben
--
Ben Engber
Software Engineer
The New York Times
[EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".