Recent articles:
Popular archives:
Java: A platform for platforms
Sun's reorg may seem promising to shareholders but it's also a scramble for position. The question now is whether Sun can,
or wants to, maintain its hold on Java technology. Especially with enterprise leaders like SpringSource and RedHat investing
heavily in Java's future as a platform for platforms
Also see:
Discuss: Java: A platform for platforms?
With Java technology, "standard" recompiled classes aren't automatically reloaded, so a new Java application cannot be tried out until the server running it is restarted. (When I say standard classes, I mean non-JSP/servlet classes -- perhaps ones used for application data, utility functions, and so on.)
To get around that, I tend to overuse JSPs and servlets in almost all my Web-based application development, especially in smaller projects, since JSPs are compiled into a servlet each time the JSP file changes. In fact, I even stay away from straight servlet coding because the servlet reloading in most Web servers is somewhat flaky. And coding Java, compiling the servlet into a classfile, and placing it in the Web server's classpath is more complicated than placing a JSP file on the Web server and letting the Web server do the rest.
JSP coding is an extremely convenient mechanism for development, but using just JSPs -- and possibly JDBC -- isn't the most effective design or solution for large and/or complex projects.
For most projects, you try to use certain best practices like basic object-oriented design, architect/design patterns, and frameworks. The use of standard APIs and protocols such as EJB, JMS, RMI, and servlets is also crucial to a good Java application development project. While those things are absolutely essential to projects with multiple developers, they also add complexity to projects and make the applications less dynamic (with regard to automatic Java class reloading).
Of course, using a lot of JSPs/servlets is impossible in an n-tier Java application in which you have technologies such as JSPs/servlets, EJB, JDBC, JMS, JavaMail, and core JDK in the mix. So here are some questions I hope you can help answer:
Write to me and let me know your thoughts. Or visit the iSavvix Soapbox forum for this column.