I’ve just released some code enabling XMPP connections to be pooled and handled at resource level in Tomcat/Jetty.
Source code and instructions over here :
XMPPConnection conn =new InitialContext().lookup(“java:/comp/env/xmpp/connection”); // Query JNDI
// Use the connection
conn.disconnect(); //returns connection to pool
It’s released under … the same license as Smack
Message was edited by: cstar to reflect the new non-API.