Hi Geoffrey, > I've got a series of tests which use component.start() before > the test run and component.stop() after the test run. > > Most of the time, these all run. In a particular scenario > (usually when run as a batch through Eclipse), I find that I > get an Address in Use java.net.BindException. > > Is it possible that stop() is exiting while the address is > still bound? Is there any way to ensure that the server is > well and truly stopped before proceeding? I'd hate to put > waits in the tests.
In therory yes, but this might depend on the exact connector you are using. There might also be some system specific delays before being able to reuse a socket. Could you give more details about your configuration and ideally a reproductible use case. > Alternately -- is it more common to use isolated > non-integration tests of resources? I think several users do this. IMO, this is an easy and fast solution. You just need to be very careful when recreating the Request object, setting all property correctly like the baseRef. Best regards, Jerome

