开发者

How to marry NioServerSocketChannelFactory and WorkManager

开发者 https://www.devze.com 2023-03-27 16:16 出处:网络
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 NioS

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号