Hi Ed,
I see these technologies as complementing rather than competitive. EJBs
are better for organising your middleware while servlets are great for
thin client front-end work. It's interesting that JavaServerPages adds
JavaBeans to servlets as the component for dynamic content generation
(eg. connecting to databases, calculations, links to EJBs...). There
are even suggestions that EJBs might be slotted in there as well.
If I had a simple project and did not want to design the middle-tier as
a set of interrelated components providing services I would consider
servlets exclusively. However, in our current project we use both: EJBs
are responsible for business logic and could just as well be connected
to a traditional GUI as a servlet. Our servlets, kick out Html and in
effect become the user interface.
Java Web Server provides another interesting point: you can in fact
create 'servletbeans' (not EJBs).
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 25, 1999 8:49 AM
> To: [EMAIL PROTECTED]
> Subject: servlets and EJB
>
> Hey guys,
>
> What are people's thoughts on Java servlets verses Enterprise
> JavaBeans?
> It seems to me that the two concepts overlap in very interesting ways
> (for
> example, both are pooled, and intended for distributed, networked
> objects). I
> see servlets as useful because they are request/response oriented, and
> more
> lightweight to develop. Enterprise beans are general components, and
> gain a
> full suite of middleware services.
>
> While these differences are important, it seems strange to me
> that we have
> two seperate products in the Enterprise Java Platform that perform
> such similar
> functions. Has anyone made a special lightweight enterprise bean type
> that was
> a request/response oriented bean, aka a servlet? Has anyone built a
> servlet
> engine on top of an EJB container?
>
> -Ed
>
> ======================================================================
> =====
> 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".
===========================================================================
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".