Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to integrate javamail with CONNECT program

Saroja Kandepuneni-OracleNov 4 2017 — edited Nov 21 2017

Hi,

We don't have a SOCKS proxy server and we need to you want to use JavaMail to access mail servers outside the firewall.

So I am trying to use CONNECT program to tunnel TCP connections through an HTTP proxy server.

I have executed the connect command from command line as below and it was success.

/slot/ems6724/appmgr/skandepu/connect -d -H <proxyServer>:<port> <mailServer> <port>

But how to integrate javamail with CONNECT program.I have updated the ~/.ssh/config file as below.

Host *

  ProxyCommandconnect -H <proxyServer>:<port> %h %p

But I am again getting the same error "java.net.NoRouteToHostException: No route to host" when running program to connect to mail server.

How do I run connect server and how can I configure my program uses CONNECT to access mail server.

Please provide details.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2017
Added on Nov 4 2017
13 comments
1,668 views