[jboss-user] [Beginner's Corner] - Deploying JDBC drivers and Datasources via jboss-cli.sh

Willem Noorduin do-not-reply at jboss.com
Thu Nov 29 04:34:29 EST 2012

Willem Noorduin [https://community.jboss.org/people/willemnoorduin] created the discussion

"Deploying JDBC drivers and Datasources via jboss-cli.sh"

To view the discussion, visit: https://community.jboss.org/message/779071#779071

In JBoss 7 / JBoss-EAP-6 I have made a domain-master (running on server1) and a slave (running on server2, and has server1 as its master. I have made a server-group and a server-config like this:

[domain at server1:9999 server-group] /server-group=one-server-group/:add(profile=full-ha,socket-binding-group=full-ha-sockets,jvm=default)
[domain at server1:9999 /] /host=server2/server-config=slave:add(auto-start=true, group=one-server-group, socket-binding-group=full-ha-sockets, socket-binding-port-offset=0)
[domain at server1:9999 /] /host=server2/server-config=slave:start

I would like deploy / add JDBC drivers and datasources via the cli, but:

[domain at server1:9999 subsystem=datasources]  /host=server2/server=slave/subsystem=datasources/jdbc-driver=mysql:add(driver-name="mysql",driver-module-name="com.mysql.jdbc",driver-xa-datasource-class-name="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource")
Failed to get the list of the operation properties: "JBAS014753: There is no operation add registered at address [
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "mysql")

What do I do wrong. I can't reach the datasource subsystem of the master too, so I can't add it there either (of course, I can edit it manually to the domain.xml of the slave,, but then it still don't show up in my installed-drivers-list command.

Or do you have to define all drivers and datasources on the master ?

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121129/93c7c08e/attachment-0001.html 

More information about the jboss-user mailing list