Bugs item #648111, was opened at 2002-12-04 00:24
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=648111&group_id=22866

Category: JBossMQ
Group: v3.0 Rabbit Hole
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Anatoly Akkerman (azakkerman)
>Assigned to: Christian Riege (lqd)
Summary: UIL IL does not unbind socket in stop

Initial Comment:
This bug was detected on jdk 1.4.1, Win2k, JBoss 3.0.(3|4)

After stopping UIL service and restarting it again ( I
was actually removing the jbossmq-service.xml and
adding it back into deploy) UIL IL MBean throws an
exception that the socket cannot be bound to the
specified address another socket is already bound to it.

Funny, I would have thought that once the UIL MBean is
garbage collected (since I am removing and adding
jbossmq-service.xml I expect that to happen), then the
socket should be GCed and closed, aparently this does
not happen.

The fix is simple, in
org/jboss/mq/il/uil/UILServerILService.java

modify stopService() so it closes the server socket:

   public void stopService()
   {
      try
      {
         running = false;
         unbindJNDIReferences();
        // unbind the serverSocket if needed
        if (serverSocket != null &&
serverSocket.isBound()) {
             serverSocket.close();
         }
      }
      catch (Exception e)
      {
         e.printStackTrace();
      }
   } 

----------------------------------------------------------------------

>Comment By: Christian Riege (lqd)
Date: 2002-12-06 10:20

Message:
Logged In: YES 
user_id=176671

looks good, will apply your fix. thanks!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=648111&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to