Hello,

I'm using jetty to host a websocket server which relies on an annoted 
ServerEndpoint where I declare my handling methods (@OnOpen, @OnClose, 
@OnMessage, @OnError) that are then called by the jetty server.

I would like to have the different callbacks to be called on different thread, 
to do so I tried to configure the server with the following:
server = new Server(new QueuedThreadPool(30));
Server = new Server(new ExecutorThreadPool(30));
Server = new Server(new ExecutorThreadPool(Executors.newFixedThreadPool(30)));

But all those attempts give the same result, it seems that the OnMessage 
callbacks are executed sequentially. Maybe the given ThreadPool isn't designed 
for that purpose, it works fine if I wrap each call myself by delegating the 
work to an executor but I rather not do it if jetty can take care of that for 
me. What am I missing ?

Thanks for your help,
Regards,

William
*******************************

This e-mail contains information for the intended recipient only. It may 
contain proprietary material or confidential information. If you are not the 
intended recipient you are not authorised to distribute, copy or use this 
e-mail or any attachment to it. Murex cannot guarantee that it is virus free 
and accepts no responsibility for any loss or damage arising from its use. If 
you have received this e-mail in error please notify immediately the sender and 
delete the original email received, any attachments and all copies from your 
system.
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to