2.4 Servlet Spec Reviewed 30
Greg Wilkins writes "Core Developers Network have reviewed the good, the bad and the ugly of the 2.4 servlet specification being produced by JSR154
.
As well as introducing the new features, those that are missing in action are discussed. Also existing and newly added problems in the specification are presented."
Very nice analysis (Score:2)
Re:java is obsolete (Score:5, Interesting)
Java's main strength was supposed to be platform independence. However, due to missteps by Sun and backstabbing by Microsoft, Java has been relegated to the back-end of a web page, running under Unix. In this client-server architecture, speed is crucial, and Javas bytecode doesn't cut it.
Although I would argue that Java's OO implementation is also it's main strength, but platform independence is also a big deal.
Microsoft's antics only really prevent Java Applets from becoming a much bigger thing than they are today. In any other client-side Java deployment you can be sure the JRE ships with the app, is installed on the client machine by the sys-admin (corporate environment) or the installer handles JRE installation for you.
If you truly believe that Java isn't platform independent, go look at any of the numerous Java Apps that have been written. Notice how they run on Windows, Mac, Linux and Solaris? That's not a typo. Here is one if you're too lazy to look yourself [aquadatastudio.com].
Native binaries are the only way to get the speed necessary in the post-.com days
This is also wrong. One need only look at the rapid proliferation of languages such as Perl, PHP, Python and (duh) Java as evidence. Asm/C/C++ have their uses - but to use them for everything should get you fired.
Fortunately, Linux is FREE (as in herpes and porn)and makes commodity hardware perform as well as enterprise offerings from Dell, Compaq, IBM, etc.
Linux is an operating system - Java is a programming language. What are you trying to compare? Funny thing is, the Linux and Windows JREs are usually ahead of the solaris JRE - because more java users use... well, Linux and Windows.
Furthermore, all major unices (AIX, SCO, *BSD, HPUX, Solaris, etc) include linux binary support, so linux binaries are more platform independent than Java is.
Wonderful - so your app will run on all these different flavors of UNIX... just slower. Where as the JRE was built for the OS and does not need the same kind of translation. On top of that, it can take advantage of OS features a Linux binary may not be able to.
Oh yeah - and Java runs on all those platforms plus Windows. So by sheer numbers Java is more platform independent.
Re:commercial java is not portable (Score:1)
Re:commercial java is not portable (Score:3, Informative)
As for the non-free bit, Java runs on MacOS X, Irix, AIX, and Windows. I'm sure there are more ports, but that covers all of the major OSes that run server-side software. J2ME even runs on tons of telephones and PDAs.
I'm not sure what your point is. But it seems like your information may be a bit out of date.
Re:commercial java is not portable (Score:2)
68k, sparc, alpha, arm, mips, hppa, ia64 and s390 in addition to 'sh' and opteron.
I do not believe that there are non-free (i.e official) java versions available for many of these.
Also, looking around, it appears that PPC Linux doesn't have the latest Java.
BSD - FreeBSD does have Java, IIRC, but how about Net or OpenBSD? On something other than Intel?
My point is that Java the implementation (as opposed to just the language which of course is quite portable) i
ANY java is not portable (Score:2)
The fact is that "Hello World!" is the only platform-independent Java application. Everything else MUST BE carefully tested and most likely patched to adapt on next platform.
Re:commercial java is not portable (Score:3, Informative)
Not true, the source is openly available [sun.com]. It may be non-Free by the FSF definition, but it is certainly not closed.
Re:commercial java is not portable (Score:1)
http://www.opensource.org/docs/definition.php
which is pretty similar to what the FSF defines as 'free'.
Re:commercial java is not portable (Score:2)
Just becuase Java doesn't run on my C=64 or my microwave oven doesn't mean I'm going to stop writing my servlets in Java.
And you know what? Those obscure platforms that it doesn't run on are small markets anyway.
Re:Java (Score:3, Interesting)
Java saves the user money at the cost of the developers being ridiculed by people on slashdot that praise PHP (which is generally slower) than Java Servlets (the topic of conversation).
Maybe you think websites should be written in C and linked directly to the kernel? That would be a hard arguement for the likes of you to argue.
Re:Java (Score:4, Interesting)
So, I, a developer, can tell you, without a doubt, that using perl or PHP for any application other than your home page is generally a bad idea. It's slower, less maintainable, doesn't scale as well, and is less secure than Java Servlets/JSP on average. You'll have a hard time fighting with numbers or playing with definitions in order to dispute that too. Believe me, because I've used PHP on Enterprise level projects, but only because it was better than ASP, and before I learned Servlets/JSP. I'm in the process right now of converting an application from Perl/C/C++/PHP to Java because it's is a mess to administer. C/C++ calls to the Win32 API are a nightmare because the documentation blatantly lies, and without having a windows client, we would be screwed from the start. Perl and it's DBI mess crashes so much that I had to write a bash script to keep it up (several versions of both the DBI and Perl and MySQL still will crash when you try to keep it up 24/7). PHP, being the best of the three, is being thrown away because once I actually had to learn Java to replace the others, I found that it's just superior to PHP for the kind of work I need it for (user editable web scripting).
I've researched it all from Delphi, C++Builder, VC++, VB, PHP, Perl, Lisp (and frineds), and Python before I started the project. I can tell you the problems you'll run into in each of them. Some of them absolutely have no purpose (VB, Delphi, C++Builder) but others are only suited for other tasks that don't grow beyond a simple program/application into a system of interconnected peices. You can't write a true 3 tier system in PHP, and there are good reasons you would want to. Java technologies include J2EE (a superclass of servlets) that gives you an enterprise application server that you don't have to write yourself. Python is the most promising with Zope, and I keep my eyes on it all the time, but just don't be so closed minded to think that Perl can do anything. It's not meant to, and there just aren't enough good and stable API's to work on a project so large that you need everything from Message Queueing and MIME Email to Serial Port IO and TAPI. Perl doesn't even have a Zope like entity. When Python gets Zope down right and starts expanding it's API's to support all the features I need, then I'll be reconsidering.
You're career could end quick if you fail to let the mentality that Perl/PHP is good enough for any job die. It's just not the true. You may be like
The Best Pro-Java Rant Ever (Score:2)
I often forget, among all of the reasons I use Java for server-side development, the one major advantage, in my opinion, of using Java. The JCP takes commonly-used APIs and moves them into the standard library, so that I, as a developer, must no longer spend time tracking down common APIs. The interfaces are set in stone and there is one place to look for updates to specifications... the java.sun page. This saves a lot of time in develop
Re:The Best Pro-Java Rant Ever (Score:2)
Huh? (Score:2)
Is this some attempt to make people actually read the article, by providing a vacuous, content-free prescis?
Re:Huh? (Score:2)
No, I didn't even realize it until I saw your post. But you're right. It should have said "Java servlet specification" to help folks who aren't into Java servlets so much.
For me, "Greg Wilkins," "2.4 servlet" and "JSR" were cues that it was about Java, but I recognize that not everyone knows who/what those are.
Any non-Java Servlets? (Score:2)
And when I asked about non-Java servlets I mean it: servlets written without any usage of Java. So Jython won't be an answer for my question.
Re:Any non-Java Servlets? (Score:3, Informative)
Re:Any non-Java Servlets? (Score:1)
Lightweight: mod_tcl [apache.org]
Heavyweight: OpenACS [openacs.org]
Why no multipart/form-data support (Score:3)