I have been trying to track down a problem where for some reason we start getting SpyJMSExceptions that once they start continue until Jboss is restarted. In order to try and find where the problem is I turned up log4j logging levels.

What I found when I did that was that an immediate exception was thrown followed by a set of "receiver connections" being closed. After this which the SpyJMSExceptions started and will continue.

Now, of course this could just be a just a coincidence but I don't think so so I'm trying to find out a couple of things.

1. Why would changing logging levels cause a connection failure

and

2. Is there some way to detect/catch this event and try to restart connections so that we can stop the follow on SpyJMS Exceptions.