Tomcat 5.0 Released 44
aquarium writes "The Apache Jakarta Project announces the release of the first stable version of Tomcat 5.0. Improvements include performance optimizations, scalability and reliability enhancements, and improved Taglibs handling."
JSP sites and Tomcat (Score:5, Informative)
It's interesting to note that Linux (probably with Apache's Tomcat) is a very popular system for JavaServer Pages (where one would have expected Sun's own Solaris platform to be popular). There is an article at Netcraft [netcraft.com] (from July) that summarizes the situation:
JSP continues to enjoy fast growth with a 94% increase in ip addresses running JSP based sites to over 44,000 ip addresses running some 105,000 active sites.
More surprising is the composition of these sites choice of operating systems. One might expect that by far the most common operating system amongst JSP based sites would be Solaris, (...). However, Solaris is only placed 3rd with 17% behind Linux with 40% and Windows with 26%.
Re:JSP sites and Tomcat (Score:3, Interesting)
Following this logic would impose the question why no IBM OS shows up in the first ranks although they provide a Java implementation as well.
I think this figures more or less represent Java's overall OS-related deployment numbers (on Server machines).
Re:JSP sites and Tomcat (Score:3, Interesting)
This could explain that.
Re:JSP sites and Tomcat (Score:2)
MS modified the VM to make it run a lot better, but Sun were control freaks and didn't like that and refused to make the changes themselves..
In summary imagine two huge control freaks clashing...
Re:JSP sites and Tomcat (Score:4, Informative)
Actually that's not true. Sun sued Microsoft over changes they made in thier implementation of the Java Language not the JVM. At issue were things like the Microsoft only delegate keyword that did not exist on other platforms.
When one of your selling points is "write once, run everywhere" you don't want one of your licensees adding new keywords to your language.
Re:JSP sites and Tomcat (Score:1)
Re:JSP sites and Tomcat (Score:3, Interesting)
Two years ago, (almost three), Java performance on Solaris wasn't very good. Why? Because it didn't need to be. As this article [javaperfor...tuning.com] points out, Sun had better things to do two years ago than tune the JVM on a platform that it wasn't being used for.
If anything, this memo is an example of how things are working properly. Engineers complained, and things changed. If you look at some of the modern benchmarking linked from the provided site rather than ancient gossip, you'll see that
Re:JSP sites and Tomcat (Score:4, Insightful)
How exactly is a language designed to scale well ? In LoC ?
Sorry but, while J2EE might be designed to scale well, Java is a language, and beyond that, was not designed for scalability, but portability. Remember it was an embedded language on the beginning.
Re:JSP sites and Tomcat (Score:1)
Read: "Java's Virtual Machine (JVM) is designed to scale well on big programs"
Scaling and Model 2/MVC jive (Score:5, Insightful)
In that paper "Model 1" and "Model 2" set-ups are described in some detail. In short, Model 1 is what most of us web hackers have probably done for years --
1.) A [php/jsp/asp] page for user data entry (data entry GUI) which forwards you to...
2.) Another [php/jsp/asp] for business logic that inserts the jive into an RDBMS, which then forwards you to...
3.) Another page where you might review your data, with links to (1.) or
4.) Another page to edit info which links to...
5.) Another page that edits/updates/deletes existing entries and sends you back to 3.)
You get the point. You've got php script or vbscript or Java slapped in between tags that dynamically create pages. That's Model 1.
Model 1 doesn't scale well. It is, however, a great way to get up quickly, and perfect for smaller sites. That's where PHP and dime store hackers find a home, and that ability comprises the "revolution" asp brought to the web.
Model 2 has a controller which tries to abstract as much as possible out of process described above. Check out this image [sun.com] from the Sun chapter mentioned above. See all the steps that go on from each POST from the client interface.
The point of it is that Java/JSP/J2EE allows -- and has the infrastructure as a langauge to support -- this sort of Model 2, MVC interface (As an aside, this is also one of the big advantages of
In PHP -- and even asp 3.0 -- this is a more difficult thing to pull off, as mentioned in the
And this is where Tomcat shines -- as a key part of the infrastructure that allows more complex, scalable, generic objects and architectures. Most importantly, since J2EE is a language specification, saying Java scales well is accurate. It provides a true OO platform allowing you to implement Model 2's without jumping through hoops. PHP simply (in my experience) doesn't lend itself to this nearly so straighforwardly.
Now what Tomcat 5 does for me that 4 didn't to achieve this scalability (which many posts have well-documented) is what's most interesting about this story, to which I'll now return.
Re:JSP sites and Tomcat (Score:2, Informative)
For example, Java uses a hybrid type system where most values (strings, array) are objects and have by-reference semantics, but primitive values (ints, longs, doubles, bools, etc.) do not behave as objects and have by-value semantics. It's less elegant for the programmer than some other languages (Smalltalk, Ruby, others?) where Everythin
Re:JSP sites and Tomcat (Score:1)
Re:JSP sites and Tomcat (Score:3, Interesting)
What I mean by this is it is easier in java to organize and build a complex application by wrapping business logic and typical data access deep inside generic objects (beans)....then you can focus on the framework and organization and the modularity allows you to separate out tasks well.
This is not for every application, but for the big ones that handle lots of access points (procurement/supply chain/accountin
Re:JSP sites and Tomcat (Score:2, Interesting)
Scripting languages and archives (Score:3, Insightful)
I have a few. One of the bigger design flaws PHP has is the lack of a compiled-archive format.
We have long known scripting languages do not scale well partially because they have to be evaluated entirely at runtime.
PHP's method of archives, ie. include some_library.inc.php is not as rigorous/reliable as import com.example.some_library as the application increases in size in my experience.
I don't know why but, having hundreds of *.inc.ph
Re:Scripting languages and archives (Score:4, Interesting)
However, I think that the runtime cost of interpreting a handful of source scripts for each webapp request is really quite minor compared to, say, the cost of opening a connection to a remote service, (RMI/EJB, SQL server, or whatever) marshalling and unmarshalling a series of data structures over that socket connection, generating return text from a template, and all the other work that makes up dynamic web page construction.
Pre-compiled modules are much more important for efficient distribution and deployment of code than they are for its execution. Being able to package an entire application into a single network-transferrable file is by far the most useful contribution of the Servlet container specs -- just drop that WAR file into your apps directory, and off you go.
Re:JSP sites and Tomcat (Score:1)
Which is why the WEB team of my former employer went with Caucho's Resin:
http://www.caucho.com/
Open source is great but sometimes commercial solutions are called for... on top of an open source platform of course. (smile)
-Betelgeuse
the developers deserve credit (Score:5, Informative)
Tomcat 5 implements JSP 2.0 (Score:5, Informative)
I downloaded Tomcat 5 from an apache mirror, and I am impressed. It was a drop-in replacement for the Tomcat 4 that was included with OSX Panther 10.3.x.
Re:Tomcat 5 implements JSP 2.0 (Score:5, Informative)
Not really: JSP 2.0 incorporates the EL (expression language), which was first introduced at JSTL 1.0, not the JSTL itself.
In fact, it's quite the opposite: JSTL 1.1 requires a JSP 2.0 container, as EL handling is now responsability of the JSP container, not the taglib.
Re:Tomcat 5 implements JSP 2.0 (Score:2)
Re:Tomcat 5 implements JSP 2.0 (Score:1)
oops... sry, tags are missing in parent post (Score:1)
<html:text property="firstName"/>
Should have previewed my post. Sorry
Re:Tomcat 5 implements JSP 2.0 (Score:2)
<input name="firstName" value="${customer.firstName}">
is preferred over something like:
<input name="firstName" value="<%=customer.firstName%>">
The reason is actually quite simple. The first example, using EL, is syntactically correct HTML. That means you can pass it off to your designer and have them make changes in Dreamweaver or whatever they use. Your example is not valid HTML and will either (a) blow up the too
Re:Tomcat 5 implements JSP 2.0 (Score:2)
Re:Tomcat 5 implements JSP 2.0 (Score:2)
Re: (Score:2)
Re:Overhead price? (Score:2)
Deduce what you will from that.
Re:Overhead price? (Score:2)
Sorry for the dig, but I'm consistently astounded by the gains that all of the major open source Java and desktop tools have made in their efficiency and reliability. I still remember being completely fsck'd by the overhead of green threads with the IBM JDK 1.1.X on a 2.2 kernel whenever I tried to run more than one JVM instance at once...
Re:Overhead price? (Score:1, Informative)
Eclipse is your memory hog, not Tomcat (Score:2)
AXIS (Score:2)
And I finally got Apache/Tomcat4.127/Axis working double-plus-good++ :p
Re:optimizing tomcat (Score:1, Flamebait)
I don't use it, just administrate the servers - but at least now there are some cpu cycles left over...
Q.
Reviews anyone? (Score:2)
Not in apache section? (Score:2)
Tomcat 5.0.16 + JBoss 3.2.3 (Score:5, Informative)
For those people looking for the full J2EE stack, the latest JBoss 3.2.3 [sourceforge.net] release also comes bundled with this latest Tomcat 5.0.16 release (The JBoss distro comes bundled with both Tomcat 5.0.16 and Tomcat 4.1.29 service archives). It's a pretty nice combo of two solid servers.
Other Servlet 2.4/JSP 2.0 Servers (Score:5, Informative)
This is good news. Tomcat is the reference Servlet implementation. So if it works on Tomcat it _should_ work on other servlet engines. So people that may have held off deploying or even developing Servlet 2.4/JSP 2.0 application may now start down that trail.
Also, let's not forget there are a couple of other great choices out there: Resin with Servlet 2.4 and JSP 2.0 [caucho.com] and the alpha Jetty 5.0 the Servlet 2.4 [mortbay.com].
Linux VPS Based Java Hosting - Now with Tomcat 5 if you want it [rimuhosting.com]
Tomcat 5 & JMX support (Score:2, Informative)