Several Java bindings of the Message Passing Interface standard, MPI, have been developed recently. Message bu ers have usually been restricted to arrays with elements of primitive type. We discuss use of the Java object serialization model for marshalling general communication data in MPI. This approach is compared with a Java transcription of the standard MPI derived datatype mechanism. We describe an implementation of the mpiJava interface to MPI incorporating automatic object serialization. Benchmark results show that the current JDK implementation of serialization is not unexpectedly probably not fast enough for high performance applications. Means of solving this problem are discussed.