Question: When a Blackberry phone is connected via USB and in debug mode, calls made to System.out.println() are visible in the log.

But is there any way to get access to "stdout" even from a program not in debug mode? Attaching with some command line program perhaps?

Answer: 
You can wrap the `Message` object and implement [Externalizable](http://download.oracle.com/javase/6/docs/api/java/io/Externalizable.html) interface, whereby you can write the serialization/deserialization logic in `readExternal/writeExternal` methods.
The simplest way that I know of is [xStream](http://xstream.codehaus.org). Here is a [FAQ](http://xstream.codehaus.org/faq.html#Serialization) from the xStream website specifically about this