Paul Copeland <[EMAIL PROTECTED]> writes: > It is a common misunderstanding that Enterprise Java == EJB - that is > incorrect - A design with just Servlets and JCBC such as your example > is also Enterprise Java. Again the distinction is not terribly useful > but we might as well not make up new definitions for the terms. I think > all major vendors of Java Application Servers use these terms in the > same way. Here is Sun's definition of J2EE - > > http://java.sun.com/j2ee/faq.html#technologies
I don't think it's a common misunderstanding. I think people know when to call a spade a spade. Enterprise Java is marketing nonsense. You may not be aware that Servlets predate "Enterprise Java" by about 5 years. Why Sun put the Servlet API in with EJB et al is beyond me. But then I'm not interested at all in Sun's marketing strategies. > You are correct that most containers will set the ContentLength header > automatically (depending on response buffer settings). However, it is > still necessary to explicitly call setContentLength BEFORE writing any > output to be guaranteed that the Response object will be closed. > Calling close() on the output stream is not guaranteed to close the > Response object. As I said earlier in this thread that will only work if > the Response output stream is tied to the HTTP output stream. That might > work in simple containers, but it is not a specification compliant way > to implement the pattern shown in your example. I wouldn't use the word "simple". I would use the word "sensible". To disconnect the HTTP stream would mean caching and that would not be a good thing if you want the scalability that you were talking about. In short: you still seem to think there is something intrinsically wrong with the pattern I outlined but I believe you are wrong. There is no intrinsic problem with it. -- Nic Ferrier http://www.tapsellferrier.co.uk ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html