Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Framework for Scalable Multithreaded Client/Server Network Application [closed]

Tags:

Although the java.net.Socket and java.net.ServetSocket give me powerful networking capabilities I wouldn't want to go through the nitty gritties of creating and managing my own sockets and threads.

What open source Java Frameworks are available to create/deploy a Highly Scalable Multithreaded Client/Server Network Application?

like image 596
Kevin Boyd Avatar asked Sep 15 '09 00:09

Kevin Boyd


People also ask

What is multithreaded server?

A multithreaded server is any server that has more than one thread. Because a transport requires its own thread, multithreaded servers also have multiple transports. The number of thread-transport pairs that a server contains defines the number of requests that the server can handle in parallel.

How do you handle multiple clients in socket programming in Java?

The method printToALLClients() sends the output to each client in the thread. For the Client, we use the Socket class and initiate the connection to a server bypassing the IP address and port number. We use the Scanner to get the input from the user and send the data to the server using the PrintWriter object.

What is socket in Java networking?

A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port number so that the TCP layer can identify the application that data is destined to be sent to. An endpoint is a combination of an IP address and a port number.


2 Answers

I've had success with Apache MINA (http://mina.apache.org/) in the past. It's been pretty easy to get started with and performance is fairly decent.

like image 142
dhable Avatar answered Oct 11 '22 15:10

dhable


You could try out Jboss Netty, which is built on the Java NIO. The performance is pretty decent.

like image 33
Ravi Teja Avatar answered Oct 11 '22 17:10

Ravi Teja