I am just starting to play around with clojure.  I was trying to use
the clojure.contrib.jmx library to connect to remote java vms that
require auth (-Dcom.sun.management.jmxremote.password.file=blah -
Dcom.sun.management.jmxremote.access.file=blah).  Looking at the java
docs, I need to add "jmx.remote.credentials" into the environment map
with the value of ["username" "password"].  I tested this out by
creating a with-connection macro in my own namespace and changing the
{} to {"jmx.remote.credentials" (into-array ["username"
"password"])}.  That worked just fine for testing, but is not a long
term solution.  Does anyone have a suggestion as to how I could get
this kind of functionality integrated into jmx library?  I tried to
contact Stuart Halloway via github with no luck.  If getting this into
the library isn't an option, does anyone have any suggestions on an
elegant way to add this without essentially duplicating with-
connection macro?

  Drz

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to