We have the need to do this as well and we do have a good reason.
Reason: cocoa has great libraries in coregraphics to generate thumbnails for pdf files however cocoa is total crap when for things like running an xml-rpc server. So in this case we need our Java xml rpc server to receive calls...