0 Replies Latest reply on Aug 9, 2018 7:51 AM by geanakuch

    Using password file for jmx auhtentication with arquillian

    geanakuch

      Hi,

       

      I use arquillian to test my liferay portal set up on a remote tomcat. I have added to my JVM args the following

      -Dcom.sun.management.jmxremote \
      -Dcom.sun.management.jmxremote.authenticate=true \
      -Dcom.sun.management.jmxremote.access.file=/home/liferay/jmxremote.access \
      -Dcom.sun.management.jmxremote.password.file=/home/liferay/jmxremote.password \
      -Dcom.sun.management.jmxremote.port=8099 \
      -Dcom.sun.management.jmxremote.ssl=false
      
      

      because I want to use password authentication for jmx.

      Now I need to find a way to do something similar for the arquillian.xml.

      So far I have only managed to put the username and password into arquillian.xml in plaintext. But the xml will be pushed into the VCS repository and I don't want the credentials to be there. So my question is: can I reference a password file (similar to what I did for the server configuration) in the arquillian.xml somehow?

      I'm sure there must be a relatively simple way to do this.

       

      Any help is appreciated.

      Thanks!