My code is very simple. And the close() is in finally clause. I can't see any means to 
improve my code to solve the problem:
    MsgTransfer jmsService= new MsgTransfer();
    try{
      jmsService.publishObject(obj);
    }catch(Exception ex){
      ex.printStackTrace();
    }finally{
      try{
        jmsService.close();
      }catch(Exception ex){
        ex.printStackTrace();
      }
    }

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

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


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to