-
1. Re: How to get CLI script for subsystem in standalone.xml?
ctomc Oct 8, 2013 5:26 AM (in response to spbhosale)Hi,
you can call :describe() operation on any resource(or at least on subsystem level)
-
2. Re: How to get CLI script for subsystem in standalone.xml?
spbhosale Oct 8, 2013 7:35 AM (in response to ctomc)So there is not any way to get script from XML source?
-
3. Re: Re: How to get CLI script for subsystem in standalone.xml?
ssilvert Oct 8, 2013 8:04 AM (in response to spbhosale)I just noticed that the CLI GUI doesn't list "describe" as one of the available operations. The reason is that "describe" is not returned when CLI GUI does "read-operation-names". However, you can still execute the describe operation from CLI GUI. Just type it in manually after the address.
/subsystem=remoting/:describe
I know that auto-generation of CLI scripts from XML has been talked about but I don't think anyone has implemented it. I'm guessing that's probably because you would need to know the correct ordering of operations, which would be difficult to figure out from raw XML.
However, it wouldn't be that hard to figure it out manually. If someone contributed a script that generated standalone.xml then that would be a great starting point for everyone.
Stan
-
4. Re: Re: How to get CLI script for subsystem in standalone.xml?
kabirkhan Oct 8, 2013 8:11 AM (in response to ssilvert)Stan Silvert wrote:
I just noticed that the CLI GUI doesn't list "describe" as one of the available operations.
Correct, it is 'private' so we don't advertise it - however you're still allowed to call it.
-
5. Re: How to get CLI script for subsystem in standalone.xml?
sfcoy Oct 8, 2013 8:12 AM (in response to spbhosale)You might want to have a look at https://docs.jboss.org/author/display/AS72/CLI+Recipes and https://docs.jboss.org/author/display/AS71/CLI+Recipes, which unfortunately have different, but otherwise useful content.
-
6. Re: Re: How to get CLI script for subsystem in standalone.xml?
ssilvert Oct 8, 2013 8:18 AM (in response to kabirkhan)Kabir Khan wrote:
Stan Silvert wrote:
I just noticed that the CLI GUI doesn't list "describe" as one of the available operations.
Correct, it is 'private' so we don't advertise it - however you're still allowed to call it.
Why is it private?
-
7. Re: Re: How to get CLI script for subsystem in standalone.xml?
kabirkhan Oct 8, 2013 8:22 AM (in response to ssilvert)It is internal functionality for domain mode
-
8. Re: How to get CLI script for subsystem in standalone.xml?
spbhosale Oct 8, 2013 9:57 AM (in response to spbhosale)I think there is some confusion about my question. I want to write script which will add subsystem->datasource( which I have added manually) to standalone.xml.
-
9. Re: How to get CLI script for subsystem in standalone.xml?
sfcoy Oct 8, 2013 7:33 PM (in response to spbhosale)S BH wrote:
... I want to write script which will add subsystem->datasource( which I have added manually) to standalone.xml.
There's examples of this in the links that I provided above.
-
10. Re: How to get CLI script for subsystem in standalone.xml?
spbhosale Oct 10, 2013 2:01 AM (in response to spbhosale)Thanks a lot all of you for the help. Now I am able to add "driver", "security-domain" & "datasource"
But finding hard to add <subsystem xmlns="urn:jboss:domain:messaging:1.1"> with sub tags like "hornetq-server", "connectors", "acceptors", "security-settings", "address-settings", "jms-connection-factories" & "jms-destinations".
I am not finding any document or example for the same.
Thanks in advance.
-
11. Re: How to get CLI script for subsystem in standalone.xml?
kabirkhan Oct 10, 2013 5:32 AM (in response to spbhosale)If you have the AS 7.2 source, you can edit standalone.conf to enable remote debugging. Then in your IDE set a logging breakpoint in ModelControllerImpl.boot() to print out the full list of boot operations coming from the parsed xml. This should give you an idea of the operations needed to to add hornetq servers etc. Note that at boot it will first build up the model for the full list, before installing the services. Once the server is booted we do the same but per operation. What I am getting at is that since hornetq is a complex subsystem where you might need to add several levels of resources before the model make enough sense to install its services, you will probably need CLI Batch Mode in order to build up a composite operation.