Marshaller marshaller = new InvocationMarshaller(); UnMarshaller unmarshaller = new InvocationUnMarshaller(); MarshalFactory.addMarshaller(InvocationMarshaller.DATATYPE, marshaller, unmarshaller);
try { SerializationStreamFactory.setManagerClassName("jms", "org.jboss.jms.server.remoting.JMSSerializationManager"); } catch (Exception e) { log.error("Failed to set SerializationManager, e"); }
   private synchronized void checkMarshallers()   {      if (checked)      {         return;      }            // We shouldn't have to do this programmatically - it should pick it up from the params      // on the locator uri, but that doesn't seem to work.      Marshaller marshaller = new InvocationMarshaller();      UnMarshaller unmarshaller = new InvocationUnMarshaller();      MarshalFactory.addMarshaller(InvocationMarshaller.DATATYPE, marshaller, unmarshaller);      checked = true;   }