Request
{
"name" => "MySqlDS",
"use-ccm" => false,
"pool-name" => "MySqlDS_Pool",
"connection-url" => "jdbc:mariadb:,
"jta" => false,
"driver-class" => "org.mariadb.jdbc.Driver",
"driver-name" => "mariadb-java-client-1.3.4.jar",
"valid-connection-checker-class-name" => "org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker",
"background-validation" => true,
"exception-sorter-class-name" => "org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter",
"jndi-name" => "java:/MySqlDS",
"user-name" => "root",
"password" => "123",
"enabled" => true,
"operation" => "add",
"address" => [
("subsystem" => "datasources"),
("data-source" => "MySqlDS")
]
}
Response
Internal Server Error
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0158: Operation handler failed: org.jboss.msc.service.DuplicateServiceException: Service org.wildfly.data-source.MySqlDS is already registered",
"rolled-back" => true,
"response-headers" => {"process-state" => "reload-required"}
}