I have been asked to look at EJB by my company.  After some research, I have
some questions which I hoped people on this mailing list could help out.

First all, all indications are remote entity beans are not to be used for
small-grain objects.  The reason for this is because it incurs too much
network traffic.  Makes sense...

This seems to suggest that one should use session bean facades with entity
beans working in the EJB server, using perhaps 2.0's local entity beans.  I
even read upon a "design-pattern" for this.

Now, suppose I would like my application to run as an HTMP/JSP/XML app,
where the user is using a browser.  The client is talking to my servlet.
The question is then whether I should have this servlet make EJB client
calls.

If I do, I end up with 4-tier architecture where:  the client uses the
browser.  The HTML req comes to the servlet.  Servlet makes EJB client
calls, EJB client makes calls into EJB server.  EJB server makes database
calls.

I end up with 4 processes (1 for CLIENT, 1 for SERVLET + EJB CLIENT, 1 for
EJB SERVER, and 1 for DATABASE).  This seems a bit excessive.  I then must
ask whether EJB is adding real value here.  If I (for network performance
reasons) have to make my session bean facades coarse-grain and have all
interesting business logic happen inside EJB SERVER, what value does EJB add
other than a glorified RPC and the supposed promise of portability?

Wouldn't it make more sense for me to call "what would've been the session
bean implementation in EJB SERVER" directly from my SERVLET?

I'm not convinced at all about this promise of portability.  Porting an
application written for SQLServer to DB2 was bad enough (both supposedly
conforming to the SQL standard).  In fact, the database access language part
of the porting effort (which is where the two systems shared the greatest
degree of commonality due to the standard) was the easiest and simplest
part.  90% of effort was on wrestling with "little" idiosyncracies of the
two systems.  Given the fact that each of them has to competitively
differentiate itself, the most interesting part of their system was all
outside the realm of the standard.

I'm afraid the same is true with EJB.  In fact, seeing how the spec is
evolving and chaning all the time, I'm afraid it's even worse.

If someone actually did real life, big app development using servlet and
EJB, could you chime in and shed some light on this architecture issue?

No offense, but I'm not much interested in evangelist howling or some
theoretic empty-talk.  I'm looking for practical advices based on real
experience.

Thank you.


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

===========================================================================
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".

Reply via email to