Ciao a tutti, sto impazzendo, per connettere l'applicazione a un DB ms sql Server 2000 tramite la libreria jtds....


Qualcuno l'ha già utilizzata? Saprebbe darmi qualche dritta?
Continua a dirmi connection refused...
Uso la win autentication...

E' ben accetto qualsiasi suggerimento, anche per la stringa di connessione....

L'errore è questo
codice:
Exception in thread "main" java.sql.SQLException: Network error IOException: Connection refused: connect
	at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:372)
	at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
	at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:178)
	at java.sql.DriverManager.getConnection(DriverManager.java:525)
	at java.sql.DriverManager.getConnection(DriverManager.java:171)
	at it.targainfomobility.traffico.database.pool.LRConnectionPool.createLRConnection(LRConnectionPool.java:82)
	at it.targainfomobility.traffico.database.pool.LRConnectionPool.getLRConnection(LRConnectionPool.java:131)
	at it.targainfomobility.traffico.test.TestDbConnection.main(TestDbConnection.java:46)
Caused by: java.net.ConnectException: Connection refused: connect
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
	at java.net.Socket.connect(Socket.java:516)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:289)
	at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:250)
	at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:297)
	... 7 more
Grazie in anticipo