Announcement Announcement Module
Collapse
No announcement yet.
Starting up a plain socket-based service Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment

    Working...
    X