XMPP Connection pooling in tomcat/jetty

Hi all

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 :

XMPPPool

try{

XMPPConnection conn =new InitialContext().lookup(“java:/comp/env/xmpp/connection”); // Query JNDI

// Use the connection

conn.disconnect(); //returns connection to pool

}

catch(Exception e){

e.printStackTrace();

}

It’s released under … the same license as Smack

Message was edited by: cstar to reflect the new non-API.