Less Frequently Asked Questions: Using Apache cTAKES to Connect to UMLS from Behind a Proxy

If you find yourself in need of that wonderful Unified Medical Language System and you have only a proxy server through which to obtain access, you simply need to add some options and associated parameters to your runctakesCVD.sh and/or runctakesCPE.sh files (whichever you are using – probably both).

This information originated from the ctakes-dev mailing list archive but needs a slight tweak to work properly in my experience (some single quote additions around the localhost|*.mycompany.com constructions).  So, the string of options and parameters to add right after the bottom “java” line (line 45 in the apache-ctakes-3.2.2 scripts) is:

-Dhttp.proxyHost=proxyhost.mycompany.com -Dhttp.proxyPort=myhttpproxyport -Dhttps.proxyHost=proxyhost.mycompany.com -Dhttps.proxyPort=myhttpsproxyport -Dhttp.nonProxyHosts='localhost|*.mycompany.com' -Dhttps.nonProxyHosts='localhost|*.mycompany.com'

Where, of course, you replace

  • “proxyhost.mycompany.com” with your actual proxy server
  • “myhttpproxyport” and “myhttpsproxyport” with your actual proxy server’s actual ports
  • “*.mycompany.com” with your actual domain name (keep the leading asterisk and dot)

It should work thereafter!

Advertisements
This entry was posted in Information Technology. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s