Posted by editor
on October 17, 2006 at 5:41 AM PDT
What will emerge as the Blogapps book code evolves? Also:
Feature Article: The Blogapps project
Java Today: NetBeans 5.5 RC2, Java Tools newsletter #98, and pre-processing for Java ME
Forum messages: Battles over SwingX painting responsibilities, Java Compiler Framework availability for Mac OS X, and Linux GlassFish on port 80?
Weblogs: JPA spec holes, NetBeans DocBook module, and you know what would be better than closures?
What will emerge as the Blogapps book code evolves?
The Blogapps project might just have the ideal approach for putting a book's example code online. It'd be easy enough to put a zip up on the publisher's website -- actually, I can tell you from experience that managing lots of samples, ensuring that they work and reflect what's in the book isn't as simple as it looks -- but there's another, more ambitious approach, and that's to check the code into a public repository and let it grow.
This is what Dave Johnson (creator of Roller) has done with Blogapps, which is the example code for his book RSS and Atom in Action. It helps that the sample code provides a useful purpose beyond illustrating the book's tips and techniques -- the code is effectively a complete RSS and Atom development kit -- but Dave has done something particularly interesting in regards to the future of the project. There is, after all, a tension between the inherent desire to improve the code base, and the need for it to continue to reflect the book's contents accurately. So what did he do? He forked:
In the Blogapps 1.0 branch, which is supposed to remain true to the code in the book, I will only make changes to fix bugs and to update the code for the final Atom Publishing Protocol specification and for the final release of IE7.
But the Blogapps 2.0 branch can run wild and free. It can deviate from the code in the book. So I (and maybe someday, we) can release new versions of the Blogapps Examples with completely new features and new versions of the Blogapps Server that use newer versions of Roller an JSPWiki.
In our Feature Article , Dave introduces
The Blogapps Project , showing you how to get the examples up and running, and touring the various parts of the code to indicate how you might be able to reuse them in your own projects.
In Java Today ,
the NetBeans team has announced that the second release candidate for the NetBeans IDE 5.5 is now available . NetBeans 5.5 supports the Java EE 5 platform, and the Java Persistence, EJB 3 and JAX-WS 2.0 specifications. Also available are updated versions of the Profiler and Mobility Pack. NetBeans 5.5 RC2 Downloads. The final NetBeans IDE 5.5 release is planned for October 30, 2006.
The ninety-eighth issue of the JavaTools Community Newsletter is online. There's only one new project and no graduations this time, but the newsletter continues to round up tool news from around the web, offers useful links to interested community members, and has a tool tip on where to find more tips, namely the Java Tips page.
Got porting nightmares? If you're considering automating the porting your J2ME applications, you may want to think about using a preprocessor. The DevX.com article Automate Your J2ME Application Porting with Preprocessing argues it's the only technique open-ended enough to handle porting to multiple device models.
In today's Forums ,
tbee hopes SwingX will be a little less aggressive in assuming painting responsibilities, which has led to
the battle of the highlighters :
"I used to extend FTable, but nowadays I extend JXTable, since that seems to be where the development is. Aside from the easy-entry part, "my" JTable also was extended with the "usual" stuff like alternating colors, etc, plus some business related renderers like "show values < 0 in red". All these components date back to Java 1.2. So far for the intro. Now, JXTable does a great job at fixing the bugs, but I keep having to fight some of the extentions, especially the highlighters seem very persistant in wanting to set the foreground color of the renderers - even if highlighting is not configured. I just had to implement a NoActionResetDTCRColorHighlighter class, just to keep JXTable from setting the foreground."
wants to know
Is the Java Compiler Framework available to Mac OS X?
"I have tested the Java Compiler Framework on windows successfully, but after I installed JDK 6.0 beta on Mac OS X, it seems that the Java Compiler Framework is not available. It looks like that Apple has not yet added support for the JavaCompiler interface or is it not part of the standard installation?"
needs platform-specific GlassFish advice for
Running on port 80 (Linux)
"I know this has been asked before, is there any way to run glassfish on port 80 as a non-root user on linux? I have seen the blogs for Solaris 10 and Mac OS on how to do it. I really don't want to front it with Apache, if possible. I have been running Tomcat 5.5 by using the bundled 'jsvc' and it has really worked great? Is it possible that glassfish could maybe use jsvc sometime?Â "
Wonseok Kim digs into JPA spec ambiguity in a detailed entry in today's Weblogs . In JPA: Supplement to the access type of @Embeddable class , he writes:
"In Java Persistence API, Embeddable class is used to represent composite primary key or share common columns between entities. But when sharing Embeddable classes, you should be cautious whether its fields or properties are mapped to the database due to the unclear spec. I will introduce the supplementary rules to the spec which is implemented in GlassFish(TopLink Essentials)."
Tim Boudreau catches up on a number of topics in
Fun with the NetBeans DocBook modules, XSL compiler hell :
"I've got a bunch of writing projects going lately. There is a NetBeans DocBook module, if you like writing articles and books in XML (doesn't everyone?). I've had some fun enhancing it over the weekend... And if anyone knows of a Java XSL processor that won't choke on the DocBook to FO stylesheets, I'd love to know about it.Â "
Kohsuke Kawaguchi writes
Closures and language-level XML support are all good but
"... I think we have many simple things that benefit all developers."
In today's java.net
News Headlines :
Registered users can submit news items for the
href="http://today.java.net/today/news/">java.net News Page using our
form . All submissions go through an editorial review before being
posted to the site. You can also subscribe to the
href="http://today.java.net/pub/q/news_rss?x-ver=1.0">java.net News RSS
Current and upcoming Java
Registered users can submit event listings for the
href="http://www.java.net/events">java.net Events Page using our
href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
Archives and Subscriptions: This blog is delivered weekdays as
Today RSS feed . Also, once this page is no longer featured as the
front page of java.net it will be
archived along with other past issues in the
What will emerge as the Blogapps book code evolves?