• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

need help in conecting to host

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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");
System.setProperties(systemSettings);
conn="jdbc:oracle:thin:@<host>:port:sid";
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.
regards
kiran
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic