Dick has made a very good point - if dicom has not already defined the format and meanings of the messages sent over TCP then you must do so. (And like Dick, I know nothing of dicom.)
There is a standards-compliant way of enabling a Java EE app server to exchange TCP messages with clients - it's called a connector. The Java EE connector spec describes all the details.
The basic idea is that you would create a connector which would listen for incoming TCP messages and then dispatch them to a message-driven bean which would actually do the work.
- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]
http://forums.java.net/jive/thread.jspa?messageID=303773