Java

My article on XOM has been submitted to Linux Magazine and will be appearing in an upcoming issue focused on Java. I've been writing the Java Matters column for the magazine since August, giving me a great excuse to putter around with new Java APIs like XOM and Apache XML-RPC. My first two columns, which cover the Log4J logging class library and Java 2's new assertions feature, have been published online. People who want to know more about XOM now can read Michael Fitzgerald's recent article, ... (read more)I'm finishing a magazine article today on XOM, a new XML object model for Java by Elliotte Rusty Harold. The class library is impressive -- I haven't found a more easy to use, intuitive way to read, write, and manipulate XML documents with Java. Harold describes his design principles for XOM in a provocative essay that's worth reading by any programmer designing an API regardless of language. It's filled with quotable advice like this: "One of the jobs of the expert or experts who designs the ... (read more)Columbia House DVD is making heavy use of Java, according to an incredibly detailed error message on the site this morning. ... (read more)Self-promotion: My new book, Sams Teach Yourself Java 2 in 24 Hours, Third Edition, is now available. Features of the book's Web site -- a homebrew PHP/MySQL application -- include an RSS feed for site updates and a place to download Yahoo's discontinued News Ticker Java applet. One of these days I'm going to rewrite it to work with any RSS 1.0 or RSS 2.0 feed. ... (read more)I'm writing Java code to read Advogato diary entries using the site's XML-RPC interface and the Apache XML-RPC library. I can't get the getDates() method to work, and the cause appears to be some off-spec XML-RPC encoding in the response, as I describe on the XML-RPC discussion board. Help from XML-RPC gurus would be appreciated. I'm so deep into this debugging effort that I feel like Kurtz in Apocalypse Now ("The horror. The horror."). ... (read more)I had a chance this past week to evaluate Apache XML-RPC, an open source Java class library for XML-RPC programming. It's a nicely designed library that makes it trivial to create an XML-RPC server or software that makes XML-RPC calls. Remote methods are called in a manner comparable to calling any other method in Java -- XML-RPC and networking are handled by the library. Once you have figured out which Java data types to use in remote method calls and remote methods, described in this table, ... (read more)Elliotte Rusty Harold has released XOM, a new XML object model for Java. "Like DOM, JDOM, dom4j, and ElectricXML, XOM is a read/write API that represents XML documents as trees of nodes," Harold explains on his weblog. "Where XOM diverges from these models is that it strives for absolute correctness and maximum simplicity." ... (read more)Self-promotion: My new book, Teach Yourself Java 2 in 21 Days, Third Edition, is now available. I publish a Web site to support each of my books, and this is the first one that's published using a PHP/MySQL Web application instead of static HTML files. I can edit the site remotely in a Web browser and offer new features, including an RSS feed for site updates. ... (read more)Charles Miller suggests that Java should be taught using an environment where students can create and experiment with objects without needing to learn the words "public static void main()." It's an interesting idea -- the Naked Objects approach could be useful in this regard. However, as someone who has tackled this issue with each of my Java books, I've concluded that it's better to start with simple applications and the main() method, because most readers are using the Java 2 SDK while ... (read more)BEA Systems has dumped Visual Cafe as its Java development environment of choice and reached a deal with Borland, agreeing to resell Borland JBuilder in exchange for a new version of the tool tailored for the BEA WebLogic application server. ... (read more)