Threads in XMPPConnection


I’m starting to use the smack librray for the communication with the XMPP servers.

I’ve noticed that every XMPPConnection will use 4 threads (the PacketReader,PacketWriter,KeepAlive and the Listener Processor).

But in my configuration (the web application that runs in Weblogic and Websphere) it will drastically affect the performance of the application,

so I can not afford to have that many threads. Actually I can not have even one thread per connection. I guess theoretically it is possible to use the Java NIO for the communication with the server - it would be great solution.

Are there any plans to solve this issue in the future or may be some idea how to overcome this problem.

Thank you very much in advance for any comment.