There is some integration which comes with existed protocols and ports. No HTTP no JSON just plain HEX. I need to listen on this port and accept connection.
I see one solution – servlet. This way I can also manage count of thread which will handle connections but may be JBoss 7.1 provide something to do this better.
Thanks in advance
You can’t use a servlet and get it to manage threads for you unless it speaks HTTP.
The solution to your problem consists of a standard ServerSocket, accept loop, thread per connection scenario,or else an NIO implementation if you are brave.