It really depends on a variety of factors.
If it is a really small application and your concurrent usage is small, then
put it in the application server. Most application servers may run the
servlet engine and the EJB server on different JVM's and your machine being
large enough (processor and memory wise) will handle your application.
You can scale this application up vertically by adding more processors and
more memory. Especially if you have a big Unix or a AS/400 server.
But, this sort of architecture promotes the use of multiple machines
(horizontal scalability). You will find that you will get better performance
if you split the 2 engines off to separate boxes. Put them on separate
boxes, with a dedicated nic and a wire between them and you will achieve
good performance.
This is more so the case if you use NT as the OS and cheap Intel boxes as
your servers. NT is a dud at scaling up vertically and the best way for you
to get a good throughput through the whole system is to scale it
horizontally.
Other factors to consider is how much uptime you want on such a system. Five
nines are the domain of mainframes and you might have to go to an OS/390
(with EJB/390) for that. But 99.5 to 99.9% can be achieved by having a well
designed clustered architecture with either Unix or NT.
Your choice of App Server will be crucial as far as your clustering
abilities go.
Thus you can put all in one box and load it up with features and put it on
HA OR put it on multiple boxes and implement a strong cluster, where you can
add machines on the fly to the architecture and scale.
My personal preference : Is to have a cluster of AIX or Solaris machines. I
do dream of the day when I can have a cluster of cheap Linux boxes (not far
away as most products become production certified and if I can convince the
PHB's ).
-- Aravind
> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vdaygiri, Subu
> Sent: Sunday, 23 April 2000 02:27
> To: [EMAIL PROTECTED]
> Subject: Where should servlet live ?
>
>
> I have a servlet which communicates to the session bean (which in
> turn calls
> entity beans to the database). Now, should I place the servlet in the web
> server (Like java web server) or should I deploy it in the Application
> server. Can anyone point out the pros and cons of where it should live ?
>
> Thanks in advance
>
> ==================================================================
> =========
> 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".