Re: How to close ServerSocket

2000-05-14 Thread Chris Abbey
ok, I'll go out on a limb and guess that you're trying for multi-threaded access/shutdown here... where thread A creates the socket saves a reference to it somewhere and then goes into accept and you're trying to shut it down with another thread. without putting some code to handle shutdown behi

Re: How to close ServerSocket

2000-05-14 Thread Ashish
hi the code i posted is not actual code actually ss.close is part of a function which i am calling on certain condition as far as ss.accpet call it is working perfectly i am using jdk1.2.2 on windows NT and jdk1.2.2RC4 on linux ashish - Original Message - From: "Albert Y. C. Lai" <[EM

unsubscribe

2000-05-14 Thread Anson Wong
 

Re: How to close ServerSocket

2000-05-14 Thread Albert Y. C. Lai
"Ashish" <[EMAIL PROTECTED]> writes: > how to close server socket without throwing an exception? > > if i call close then it throws exception which gets caught in catch 1 not in catch 2 > can anybody explain I tried it on JDK 1.1.7v3. First, I did not get any exception that you got. Second, t

Re: How can I connect to MySQL using JDBC

2000-05-14 Thread javor
hi i setup s MySQL server and connected to it a few days ago so i'm not experienced SQLer too :) here is how i connect to the server: Class.forName("org.gjt.mm.mysql.Driver").newInstance(); Connection C = DriverManager.getConnection("jdbc:mysql://localhost/hop?user=root&password=my_pass");