On Thu, 2007-06-21 at 17:29 -0700, Robert Schuler wrote: > Anyone know if Java CoG Kit, particularly the GlobusCredential class, > will load a user proxy as specified by the X509_USER_PROXY environment > setting? > > Here's what the document on the Java CoG Kit has to say about this. The > statement comes from page 13 of "GT 4.0 Contribution: Java CoG Kit". > > http://www.globus.org/toolkit/docs/4.0/contributions/javacog/index.pdf > > " > 3. Configuring > In general no extra configuration is required to use Java CoG Kit. > However, in certain cases additional configuration might be required. > The Java CoG Kit configuration file is placed in > $HOME/.globus/cog.properties on Unix/Linux machines or > %USERPROFILE%\.globus\cog.properties on Windows machines. > > 3.1. Proxy file location > By default Java CoG Kit will try to use the same proxy file as used by > the C tools. However, in certain cases Java CoG Kit might fail to > determine the right proxy file location. In these cases a proxy file > location might need to be specified in the configuration file. To set a > specific proxy file location just add the following line to the > configuration file: > > proxy=<proxy location> > > This has the same effect as setting the X509_USER_PROXY environment > property or Java system property. > " > > Is it possible to use the X509_USER_PROXY setting instead of > cog.properties?
Yes. However, if you're not using the scripts provided by CoG to start things, you will have to set the X509_USER_PROXY Java system property. Up to and including Java 1.4, there was no way to retrieve environment variables from Java. Mihael > > Thanks, > Rob >
