wood burning stoves 2.0*
The moose likes JDBC and the fly likes need help in conecting to host Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "need help in conecting to host" Watch "need help in conecting to host" New topic

need help in conecting to host

kumar polisetty

Joined: Mar 20, 2007
Posts: 1
Hi ,
I am trying to connect to oracle database which exisits in a different firewall. For connecting to that databse i need to go through a socks5 proxy server.

i need code snippet/reference which can help me in getting through a proxy server and then connect me to the databse in question to extract the data.

i have set the properties like..

Properties systemSettings = System.getProperties();
systemSettings.put("http.proxyHost", "Socks-server.xxx.xx.com");
systemSettings.put("http.proxyPort", "1080");
connection = DriverManager.getConnection(conn,"<userId>" ,"<passwrd>");

any particular API to connect through/by pass the socket% proxy server
shoukd we use SSL and then open the JDBC connetion.
curently i get a msg
"Exception raised java.sql.SQLException: Io exception: The Network Adapter could not establish the connection" this is due to the socket5 proxy not bypassd. not aware how to bypass it.

kindly assist me.
I agree. Here's the link: http://aspose.com/file-tools
subject: need help in conecting to host
Similar Threads
Connection timeout with HttpsURLConnection
sockets and proxys again...
java.net.ConnectException: Connection refused: connect
Invoking URL through Proxy Connection
ftp connection behind WinGate(GateKeeper) proxy