3 Replies Latest reply on Jul 23, 2018 12:05 PM by mevans7

    How to create datasource using CLI

    mevans7

      For WildFly 13, I have an example of creating a datasource using CLI and the "data-source add" command.  However I can't figure out how to use a credential store (elytron) using that command.  So, I'm trying to use a command like:

       

      [host] /subsystem=datasources/data-source=testDS:add(jndi-name="java:/info/datasources/testDS" use-ccm=false)

      {

          "outcome" => "failed",

          "failure-description" => "WFLYJCA0071: Jndi name have to start with java:/ or java:jboss/",

          "rolled-back" => true,

          "response-headers" => {"process-state" => "reload-required"}

      }

      [host]

       

      But this gives an error stating my JNDI name has to start with "java:/ or java:jboss/".  Clearly (see above) my jndi DOES start with "java:/".  Is this a bug or am I doing it wrong?