Results 1 to 2 of 2

Thread: Starting up a plain socket-based service

  1. #1
    Join Date
    Mar 2006
    Posts
    119

    Default Starting up a plain socket-based service

    Apologies if this is a FAQ...couldn't find anything, hence this post.

    I am trying to write a 'decorator' for an ancient C/plain-sockets-based Unix application.

    Think of the decorator as a filter/proxy that also munges incoming/outgoing data.

    The question is: how to do this in spring.

    I can't see any of the available remoting strategies being useful for this situation (maybe my lack of understanding): all seems to rely on serialization and be invokable via URL, wheras I have to talk to a plain address/port and have to send a plain-text command string:

    Code:
    CMD:param,param,param
    and get back a plain-text response stream:

    Code:
    row-count int
    data,data,data
    data,data,data
    data,data,data
    ...
    Any suggestions gratefully accepted.

    The underlying server will be JBoss.

    Cheers,

    Alph

  2. #2
    Join Date
    Mar 2006
    Posts
    119

    Default An answer

    To answer my own question...Apache Mina: http://mina.apache.org/ does the job nicely and removes the need to mess around directly with ServerSockets, etc.

    It has a "chat server" example showing spring integration:

    http://svn.apache.org/viewvc/mina/br.../example/chat/

    Cheers,

    Alph

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •