You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by "Lingren, Todd" <To...@cchmc.org> on 2013/04/05 21:47:54 UTC

UMLS AE via proxy

Hi.
I have an environment where I need to specify a proxy in order to get an outside http connection. Is there a location to specify a proxy in cTAKEs ?


Todd Lingren
Biomedical Informatics
Cincinnati Children's Hospital
Todd.Lingren@cchmc.org
513-803-9032



Re: UMLS AE via proxy

Posted by "Coarr, Matt" <mc...@mitre.org>.
Hi Todd,

I have to use a proxy in my environment and I do use http.proxyHost and http.proxyPort.  But I'm use the develop setup (code from svn, run from eclipse).

For the binary release, you need to edit the script you are using to start uima -- runctakesCVD.sh or runctakesCPE.sh

Add the following to the line at the end that calls java (make sure you add it before the class name; to be safe, just add it right after "java")

-Dhttp.proxyHost=proxyhost.mycompany.com -Dhttp.proxyPort=my_http_proxy_port -Dhttps.proxyHost=proxyhost.mycompany.com -Dhttps.proxyPort=my_https_proxy_port -Dhttp.nonProxyHosts=localhost|*.mycompany.com -Dhttps.nonProxyHosts=localhost|*.mycompany.com

For reference, this is what I do for setting this up in eclipse:

  *   open the run configurations (Run menu -> Run Configuration)
  *   select "UIMA_CVD--clinical_document_pipeline"
  *   go to the arguments tab, add the following to the "VM Arguments" section:
     *   -Dhttp.proxyHost=proxyhost.mycompany.com -Dhttp.proxyPort=my_http_proxy_port -Dhttps.proxyHost=proxyhost.mycompany.com -Dhttps.proxyPort=my_https_proxy_port -Dhttp.nonProxyHosts=localhost|*.mycompany.com -Dhttps.nonProxyHosts=localhost|*.mycompany.com

Hope this helps!
Matt

RE: UMLS AE via proxy

Posted by "Lingren, Todd" <To...@cchmc.org>.
Thanks. I did try that method, but it looks like ctakes is still trying to go straight through without proxy.
I'm using the binary distribution, so editing a particular java class with System.setProperty() isn't going to be straight forward. Are there any other suggestions?


Todd Lingren
Biomedical Informatics
Cincinnati Children's Hospital
Todd.Lingren@cchmc.org
513-803-9032


-----Original Message-----
From: Chen, Pei [mailto:Pei.Chen@childrens.harvard.edu] 
Sent: Friday, April 05, 2013 4:03 PM
To: dev@ctakes.apache.org
Subject: RE: UMLS AE via proxy

Disclaimer: I have not tried this myself.
cTAKES uses the standard java URLConnection to connect to UMLS, so I believe you can set the Java System variables with -D syntax or System.setProperty()
:
http.proxyHost
http.proxyPort
If proxy requires authentication,
http.proxyUser
http.proxyPassword

> -----Original Message-----
> From: Lingren, Todd [mailto:Todd.Lingren@cchmc.org]
> Sent: Friday, April 05, 2013 3:48 PM
> To: dev@ctakes.apache.org
> Subject: UMLS AE via proxy
> 
> Hi.
> I have an environment where I need to specify a proxy in order to get 
> an outside http connection. Is there a location to specify a proxy in cTAKEs ?
> 
> 
> Todd Lingren
> Biomedical Informatics
> Cincinnati Children's Hospital
> Todd.Lingren@cchmc.org
> 513-803-9032
> 


RE: UMLS AE via proxy

Posted by "Chen, Pei" <Pe...@childrens.harvard.edu>.
Disclaimer: I have not tried this myself.
cTAKES uses the standard java URLConnection to connect to UMLS, so I believe you can set the Java System variables with -D syntax or System.setProperty()
:
http.proxyHost
http.proxyPort
If proxy requires authentication,
http.proxyUser
http.proxyPassword

> -----Original Message-----
> From: Lingren, Todd [mailto:Todd.Lingren@cchmc.org]
> Sent: Friday, April 05, 2013 3:48 PM
> To: dev@ctakes.apache.org
> Subject: UMLS AE via proxy
> 
> Hi.
> I have an environment where I need to specify a proxy in order to get an
> outside http connection. Is there a location to specify a proxy in cTAKEs ?
> 
> 
> Todd Lingren
> Biomedical Informatics
> Cincinnati Children's Hospital
> Todd.Lingren@cchmc.org
> 513-803-9032
>