This content has been marked as final.
Show 3 replies
-
1. Re: How to create datasource using CLI
claudio4j Jul 20, 2018 3:05 PM (in response to mevans7)I was able to create it, see the command
/subsystem=datasources/data-source=testDS:add(driver-name=h2,jndi-name="java:/info/datasources/testDS",connection-url="jdbc:h2:test:mane")
-
2. Re: How to create datasource using CLI
rhn-support-abhati Jul 22, 2018 10:41 AM (in response to mevans7)Hi,
The issue is : you are not using a "," between "jndi-name" and "use-ccm"in your command and the CLI is interpreting it as a single JNDI name.
Please use command : /subsystem=datasources/data-source=testDS:add(driver-name=h2,jndi-name="java:/info/datasources/testDS",connection-url="jdbc:h2:test:mane")
-
3. Re: How to create datasource using CLI
mevans7 Jul 23, 2018 12:05 PM (in response to rhn-support-abhati)I can't believe I missed that! Thank you!