----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
This may be off topic but I'd like to know how is splitting funcionality
accross servlets going to improve the speed of service() in general?
I am really curious to find out what are REAL advantages of servlet
splitting, chaining etc........good software engineering and reusability are
fine but in most of the cases I simply want it fast and thats it .........
On Thu, 17 Feb 2000, Ignacio de [iso-8859-1] Córdoba wrote:
> Chris Busch wrote:
> > What a second? All that in one servlet? You should split those up into
the
> > webemail servlet, the chat servlet, etc...
>
> Complex to do... they share a JDBC Conneciton pool to Oracle, the user
sessions
> (a session to the chat is used to enter the mail)... it is a very complex
> servlet... all the classes sum half a MB of compiled code.
that's exactly why you should split it. sharing resources such as users
sessions and jdbc pools is quite easy, amoung servlets; splitting your one
servlet into many servlets + many 'services' would make it much more
maintainable, and it might suggest unrelated improvements. (you'd have to
define public interfaces to these services, which would give you a chance
to rethink them and force you to apply good software engineering standards
to them.) java / jsdk give you several approaches which would suffice ...
good luck --
ed
--
See you at ApacheCon 2000 in Orlanda, Florida, March 8-10, 2000.
http://www.Apachecon.com/
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]