1 Reply Latest reply on Mar 14, 2007 2:43 PM by Tom Elrod

    CSV data in socket connection.

    Rafael Newbie

      Hi guys!

      I am newbie with JBoss Remoting.
      The task is to create demarshaller for comma-separated values in socket.
      Client (written in C++, and couldn't be patched) doesn't use JBoss Remoting, it just open raw socket connection and send data.
      I ve tried to use xml descriptor:

      server>
       <mbean code="org.jboss.remoting.transport.Connector"
       name="jboss.remoting:service=Connector,transport=socket"
       display-name="Socket transport Connector">
       <!--<attribute name="InvokerLocator">-->
       <!--<![CDATA[socket://${jboss.bind.address}:777]]>-->
       <!--</attribute>-->
       <attribute name="Configuration">
       <config>
       <invoker transport="socket">
       <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
       <attribute name="serverBindPort">7777</attribute>
       <attribute name="dataType" isParam="true">psp</attribute>
       <attribute name="unmarshaller" isParam="true">my.server.remoting.MyUnMarshaller</attribute>
       </invoker>
       <handlers>
       <handler subsystem="my">my.server.remoting.MyServerInvocationHandler</handler>
       </handlers>
       </config>
       </attribute>
       </mbean>
      </server>


      But JBoss says header is invalid. How should i configure my connector?

        • 1. Re: CSV data in socket connection.
          Tom Elrod Master

          My first guess would be that remoting is trying to read off the first byte to get the remoting version of the client (which it does by default). To turn this off so that all the bytes, including the first, are read into the unmarshaller, can set a system property of 'jboss.remoting.pre_2_0_compatible' to false.