It would be really nice to have a createObjectOutputStream method in HttpInvokerServiceExporter so that subclasses can create their own ObjectOutputStream impl.
For instance, I need to strip out Hibernate collections and replace them with standard JDK collections at serialization time. I have created a DeHibernateCollectionsObjectOutputStream that simply overrides replaceObject().
I had to override the entire writeRemoteInvocationResult() method in HttpInvokerServiceExporter just to create my special object output stream.
Thanks very much!