Can Java program establish JDBC Connection via Proxy Server

前端 未结 2 2000
孤城傲影
孤城傲影 2020-12-19 07:38

I want to communicate to Oracle DB Server which sits outside my network via the proxy server. I can access the web application hosted on the same machine via Browser with p

2条回答
  •  暖寄归人
    2020-12-19 08:34

    If the proxy is only a HTTP proxy, then no. But if the proxy transfers TCP/IP trafic, then you can.

    How to do that, look at How do I set the proxy to be used by the JVM or http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html

提交回复
热议问题