Creating connections is (relatively) a very slow process, so you should avoid creating them every time you want to check a message (it's an anti-pattern creating a connection every time).
Also your call to session.close() is redundant since you're calling conn.close() which will close the session too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3952233#3952233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3952233 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
