Home -> java
java
Java Application Servers Without J2EE
infoq: SpringSource Launches New Application Server without Java EE
SpringSource Team Blog: Introducing the SpringSource Application Platform
SpringSource: http://www.springsource.com/web/guest/products/suite/applicationplatform">SpringSource Application Platform
Not directly related at all, but has everything to do with it:
The Daily Profeth: Google App Engine & eclipse (PyDev) - a nice getting started guide.
Karl at Monday, May 5, 2008 | Comments (0) | TrackBack
Great NYTimes article reveals a little about their Web production process
.It was both educational and fun to read the NYTimes interview with Khoi Vinh, their Design Director.
Karl at Tuesday, April 29, 2008 | Comments (0) | TrackBack
Interesting Programming Reads
Blog at trepca.si: Java, Python and defaults - Sure is true enough.
Code To Joy: Open-Source group announces jJavaM - It was an April fools, but a good one for the sarcasm.
Python-by-example - Will come in handy.
Better Programming With Java EE: A Conversation With Java Champion Adam Bien - Dispels some myths.
An Army of Solipsists: Blog Archive: Using Spring MVC Controllers in Grails - Might come in handy if I ever get around to experimenting with Grails.
Anil Dash: Atom Wins: The Unified Cloud Database API: "I want every program that thinks of itself today as a "blogging client" to reimagine their market as being a front-end to a database in the cloud. I want all the apps built on smart database abstractions to think about this new unified cloud API as an option they must support. And most of all, I want geeks to make something cool with this that we couldn't do before."
Hosting Java Web Applications: Why Is It Still So Hard? | Javalobby
John Wilson: Groovy and XML | Groovy Zone
Karl at Saturday, April 5, 2008 | Comments (0) | TrackBack
Getting Started With Jython
Sun's hiring of two of the biggest names in Python-land - Ted Leung and Jython's Frank Wierzbicki - and my experiments with Django - has encouraged me to dip my toes in Jython. Here's a few decent starting points:
IBM developerWorks: Charming Jython
IBM developerWorks: alt.lang.jre: Get to know Jython
ONJava: Tips for Scripting Java with Jython
JythonWiki: Learning Jython (just starting this one, but this looks most comprehensive)
And of course the home page: The Jython Project
Karl at Sunday, March 9, 2008 | Comments (0) | TrackBack
Simple RESTful URLs with JSPs
Bill de hOra posted an interesting question the other day, that has to do with mapping views to requests, cleanly, in a RESTful way, as Sam Ruby framed it:
it's easy to forget that Servlets were Java's response to CGI, way back when. Here's is the link for Stefan's entry:http://www.innoq.com/blog/st/2007/08/15/java_web_frameworks.html
I'm wondering how would one produce a URL space for a blog style archive, using Servlets+JSP, and do so in a way that isn't a CGI/RPC explicit call? That is, the URLs don't end up like this:
http://www.innoq.com/blog/entry.jsp?id=java_web_frameworks
with one constraint - "just a servlet" that pulls java_web_frameworks.html direct from a "2007/08/15" folder on the filesystem and byapsses JSP is out. All the response is to be generated via JSP. Would we need to a create framework, however 'micro'?
In Django world, answering such a question is rather easy. And for PHP hackers, you're probably saying, hey, use .htaccess to route requests, but in Java, this question becomes a bit more complicated.
A Java developer would want solve two problems here: enable "clean" RESTful URLs, and do as little Java coding as possible by distributing responsibility for defining views to a templating language. Hopefully empowering someone who knows just HTML/CSS to work their magic. The benefits to such an approach can't be underestimated. We we went down such a path at Knight Ridder with the Cofax CMS and it empowered a lot of creativity with little resources on hand (lots of folks know HTML/CSS/JS, few know Java).
Carbon Five discusses an approach that decomposes path info into parameters for Spring MVC controllers: Parameterized REST URLs with Spring MVC. This solves problem one. It still routes requests to a Controller defined in Java, and I've seen far too many not solve problem two, which leaves a design where you have a Request, that maps to a Controller that maps to a single View. But this leaves you with an *excellent* foundation to solve the second problem.
Sam Ruby points to URLRewriteFilter as one possible solution. This potentially solves both problems.
Stefan Tilkov explains how to decompose path info and use RequestDispatcher as a solution. In Sam Ruby's comments, I suggested just such an approach and it's worked great for me in previous (and current) projects. This potentially solves both problems.
BTW, if you're interested in a templating language, outside of JSP (and who isn't?), consider FreeMarker. A huge project I'm helping design and develop is having terrific success with it and Spring MVC. Real magic starts to happen when you decouple Requests from Views. A shortcut to this in Spring MVC is implementing a RequestToViewNameTranslator.
Karl at Sunday, August 19, 2007 | Comments (0) | TrackBack
Warstories
Paul Tyma, a senior engineer at Google, developed and maintains Mailinator, a nifty service that helps you avoid the hassle of associating your personal email address with services you never intend to revisit during registration.
A few months ago he posted about the architecture behind Mailinator and the decisions that went into it. It's a great read.
Karl at Sunday, April 15, 2007 | Comments (0) | TrackBack
