I am trying to use Netty (4.0.24) to create several servers (several ServerBootstraps) in one application (one main method). I saw this question/answer but it leaves many questi
public static void main(String[] args) {
new Thread(new Runnable(){
@Override
public void run() {
//{...} ServerBootstrap 1
}
}).start();
new Thread(new Runnable(){
@Override
public void run() {
//{...} ServerBootstrap 2
}
}).start();
new Thread(new Runnable(){
@Override
public void run() {
//{...} ServerBootstrap 3
}
}).start();
}