-->

How to marry NioServerSocketChannelFactory and Wor

2019-06-09 04:05发布

问题:

I am looking to implement a JCA Resource adapter to accept socket connections from within J2EE container.

I need to somehow be able to use WorkManager to manage threads in netty's NioServerSocketChannelFactory Any Help is greatly appreciated.

回答1:

Got it! NioServerSocketChannelFactory takes two Executor(s), boss and worker, as parameters to the constructor. so all I need to do is develop a facade to WorkManager to implement execute(Runnable) method that will use workManager.schedule(...) call.



标签: netty jca