Hello, i have a scenario where i need to check if the tcpserver with a give port is already in use if so then stop the server and restart the same.
Can i be able to do this, something like at the start of tcpserver i should check this and restart the server in that way i may not get port bind issues. Thanks in advance, On Thursday, March 20, 2008 at 11:08:24 AM UTC-5, Markus wrote: > > I recently attempted to upgrade my version of H2 from version 1.0.64 > (2007-12-27) to 1.0.68 (2008-03-15), but ran into some problems. > > I normally run H2 embedded, and after upgrading the server I could not > connect to it correctly (the jdbc-connector threw a connector is > broken-message). In order to debug, I tried to start the server by > itself. > > "java -jar h2.jar" using 1.0.64 presented me with the following output > (from memory unfortunately, but I am fairly certain it is correct): > Port is in use, maybe another Web server already running on > http://localhost:8082 > Port is in use, maybe another TCP server already running on > tcp://localhost:9092 > Port is in use, maybe another PG server already running on > pg://localhost:5435 > > At first I thought that I already had H2 running, but that was not the > case. After reverting to version 1.0.64, typing "java -jar h2.jar" > correctly started the database and further testing showed that the > embedded version worked once again. > > I had however successfully been able to use org.h2.tools.RunScript to > migrate my database data from 1.0.64 to 1.0.68. Also, I did not have > this problem when attempting to run the database in Windows. The > system in question that I have the problem on runs OpenSuse and Java > 1.6.0-b105. > > Any help would be appreciated! > > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
