-1

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

4

1 に答える 1

1

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.

于 2012-09-13T22:20:50.413 に答える