To Use the CompressingMarshaller in the JBoss AS I replaced in ejb3.deployer/WEB-INF/jboss-service.xml the line
<attribute name="InvokerLocator">socket://${jboss.bind.address}:3873</attribute>
<attribute name="InvokerLocator">socket://${jboss.bind.address}:3873/?marshaller=org.jboss.remoting.marshal.compress.CompressingMarshaller&unmarshaller=org.jboss.remoting.marshal.compress.CompressingUnMarshaller</attribute>
10:43:46,934 ERROR [socket.ServerThread] failed java.io.IOException: Can not read data for version 72. Supported versions: 1,2,22 at org.jboss.remoting.transport.socket.ServerThread.versionedRead(ServerThread.java:660) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:530) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:383) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
There seems to be a problem with the compressions marshaller, which I need to look into. I've added a reference to this thread to JIRA issue JBREM-677 "Compression marshalling fails intermittently."