This content has been marked as final.
Show 2 replies
-
1. Re: How to programmatically remove a dataSource
parminder Nov 22, 2012 12:30 AM (in response to mukulgoel)Simply remove: operation.get("principal").remove(username); to the example above. This just remove a simple parameter.
You maybe want to look into jboss-dmr library for supported operations: https://github.com/jbossas/jboss-dmr/blob/master/src/main/java/org/jboss/dmr/ModelNode.java
See the snapshot of the implementation from above class. Hopes this helps.
-
2. Re: How to programmatically remove a dataSource
nickarls Nov 22, 2012 2:30 AM (in response to mukulgoel)running jboss-cli with the --gui parameter is also handy for learning the structure of the commands (navigate to the datasource, right-click for operations, see what is generated)