JBoss Community

Re: How use AsynchronousServerSocketChannel with JCA 1.6 ?

created by Jesper Pedersen in IronJacamar - View the full discussion

No, do a wrapper class that implements the ExecutorService interface, and take a WorkManager instance in its constructor.

 

Then the methods uses the WorkManager to execute whatever is passed in.

 

I would start the ServerSocket in the ResourceAdapter::start() method...

 

I don't have any NIO.2 examples.

 

HTH

Reply to this message by going to Community

Start a new discussion in IronJacamar at Community