Obviously broken code, that is described in the FAQ:

  | } finally {
  |                     if (connection != null) {
  |                             try {
  |                                     browser.close(); // ERROR -> NO CLOSE
  |                                     session.close();
  |                                     connection.close();
  |                             } catch (JMSException exception) {
  |                                     logger.alert("JMSException while 
disconnection connection",
  |                                                     exception.toString());
  |                             }
  |                     }
  | 

And the whole thing is an anti-pattern.
You should be using one permenant connection with one session per thread.
Or use a pool.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906709#3906709

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3906709


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to