# This file provides the script to remove any current datasources and # will create a new set based on the properties supplied. # An example set (used for the quickstart) are in each directory as wildfly-properties.txt # Copy one of these and modify for your install (location of db, # id, password etc). # # Run the jboss cli with the appropriate properties as follows # # ./jboss-cli.sh -c --properties=my-cal-properties.yxy --file=wildfly-create.txt # connect set jdbcUrl=${jdbcUrl} set username=${username} set password=${password} set driver=${driver} set jndiname=${jndiname} set name=${name} set resource=${resource} data-source add --jndi-name=$jndiname --name=$name --connection-url=$jdbcUrl --driver-name=$driver --user-name=$username --password=$password reload