> So it is totally useless for any servlet devo work and *no* knowledgable
> person would suggest using it? Sun made a mistake in including it in their
> servlet API?
In my opinion Sun made a mistake when including the STM model. Essentially
it encourages stupid people to stay stupid. I'm not saying that you are
stupid, I'm just saying that it really does nothing to help newbies learn
how to write code the correct way. It abstracts the notion of having to
learn how a multithreaded environment works. Under C this is a big thing
since it is hard to write an MT environment. Under java, it is very simple
and just requires some basic concepts (ie: syncronize shared objects).
> Is there a resource you could point me to that would tell me why the STM
> should not be used for servlet devo work, or maybe you could explain for my
> benefit?
See above. The reason why you shouldn't use STM is the entire reason why it
was developed in the first place; it makes your servlet execute in a single
threaded environment. The web is a MT environment, multiple people are going
to be hitting your servlet at the same time. There is no real reason why you
would want to funnel this through an STM environment unless you depended on
other code being single threaded and you did not have any choice.
-jon
___________________________________________________________________________
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