The Caboteria / Tech Web / TechBookmarks > ProgrammingBookmarks / JavaProgrammingBookmarks (13 May 2015, TobyCabot)
(over to JavaNotes)

XML Binding - a detailed comparison of many binding frameworks. - works very well for "inside-out" XML, i.e. you start with some Java objects and want to marshal them to XML, do something, and then unmarshal. Most of the other tools are designed to work "outside-in" i.e. you've got a DTD and want to get documents that match that DTD into Java. Very fast, very easy to get a handle on. Supports pipelined XSLT transforms which lets you generate/parse pretty much any XML structure. - looks similar to Skaringa, very Java-centric - xml<->objects
also JAXB (from Sun), Castor (from Exolab, very fussy). - another. sucky website, dunno bout the code. - another - based on Castor, claims to have better support for XML schema features. - claims to be fast. decorates the compiled classes with code that lets them marshal and unmarshal themselves. - an article about java/xml data binding

rdbms binding - I've used this at work and it's very good. Recommended.

Castor JDO.

Jakarta Torque - - looks pretty nice, has an integrated cache. - DOM wrapper for SQL result sets, might be useful with Maverick - a web UI framework that generates web pages that interact with the server using SOAP. - List Of Values component that reads enumerated key/value pairs from the database and manages them. Part of a larger framework that's mostly oriented around Java fat clients. - a GUI that will pull metadata out of a database and put it in an XML file. I've used a tool from the Jakarta Torque project for the same purpose, but this might be easier in a one-shot case.

Persistence - a framework for persisting Java objects. - might be a good query front end to work with a Prevayler or POT back end. - wraps jdbc result sets allowing them to be sent into pipelines

Code Format/Conventions - Sun's code conventions - Android's style guide builds on the standard Sun conventions


JUnit - - Testing Resources for Extreme Programming - sort of like lint for Java - finds miscellaneous flaws in Java code. - claims to be more powerful than PMD because it performs "type analysis". - another static analyzer from the university of Maryland.


I like to have code generate documentation where possible, since that keeps the docs close to the code. I'm intrigued by the idea of literate programming but don't really have the time to pick it up.


Interesting server framework:

Apache Avalon:

Open For Business - - an extensive framework released under a very liberal license.

Carbon Component Framework - - Sapient's Java/J2EE framework. Looks pretty good overall, covers a lot of the crufty things that j2ee doesn't.

Open Symphony -

Keel "meta framework" -

"JEgg is a framework designed to reduce the complexity and cost of developing robust, multithreaded Java applications" -


JFreeChart - Java chart library, generates raster images from data - Looks very good. LGPL license, but docs cost $40. I've used this and it can do anything but the API was a little confusing to me, so it's a good thing that the source is available. If you pay for the docs you also get a sample application (with source code) that's extremely useful.
MonarchGraph - a co-worker of mine recommends this -
JGraph - Swing component to manipulate graph structures interactively
TouchGraph - a tool for visualizing graphs -


Strangely enough, it can be hard to find a list of all of the command-line options to the java executable, especially the pesky but occasionally useful -XX options. Here's a page that lists many of them: . One option that's missing on that page but is very useful is -XX:+HeapDumpOnCtrlBreak.

Tuning the Java garbage collector:
How much heap will the JVM allocate by default?

The Heap Analysis Tool analyzes Java heap dump files. It's included in Java 1.6 but can be downloaded to use with older versions:
RHEL/Centos' version of jmap doesn't work by default, so to be able to dump the jvm's heap you need to install the openjdk "debuginfo" package. , e.g. $ sudo yum --enablerepo='*-debug*' install java-1.6.0-openjdk-debuginfo.x86_64.

This is an interesting paper about how the singleton pattern gets abused, why that's bad, and one approach to working around the problem:

Java(TM) 2 Platform, Enterprise Edition Blueprints | This is how Sun thinks you should build big applications using Java. I pretty much agree, except that I don't like JSP.

Java Run-time Versioning - - truly miscellaneous, but very useful code that's shared by Jakarta projects.

Java stack trace:

An article on JSR-108 the Java Units Specification:
Units and Measurements Package:

Decimal arithmetic for Java - 1.08 | also a great reference that explains why you don't ever want to use float or double to represent money. - the tool that sun seems to be using for their jsp documentation - JSP documentation generator, like javadoc for jsp's. (I tried version 20020909 and it was pretty rough. I think that it would be good to integrate into a new project but it might be hard to retrofit into an existing one.)

ejb-jar reference - - a nice html cross-reference of the ejb-jar.xml dtd.

Advanced Java Serialization - - "Durable Java", a nice set of articles about Serialization, equals/hashCode, designing API's etc. Recommended.

What bytecode version was a given jar compiled for? You don't often need to know, but when you do, you really do:

Edit | Attach | Print version | History: r79 < r78 < r77 < r76 < r75 | Backlinks | Raw View | Raw edit | More topic actions
Copyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria? Send feedback