-
1. Re: Jboss cli problem - adding global-module
jaysensharma Nov 28, 2012 8:42 AM (in response to igalp)Hi
[standalone@localhost:9999 /] /subsystem=ee:write-attribute(name="global-modules",value=[{"name" => "middleware.magic.com","slot" => "main"}])
{"outcome" => "success"}
<subsystem xmlns="urn:jboss:domain:ee:1.1">
<global-modules>
<module name="middleware.magic.com" slot="main"/>
</global-modules>
<spec-descriptor-property-replacement>false</spec-descriptor-property-replacement>
<jboss-descriptor-property-replacement>true</jboss-descriptor-property-replacement>
</subsystem>
-
2. Re: Jboss cli problem - adding global-module
igalp Nov 28, 2012 10:08 AM (in response to igalp)Hi Jay,
thanks for the quick answer.
I already saw this possiblity - the problem is that I cant add another global-module - but just override the current definition.
- Do you know how can I add a global-module using the add operation ?
- do you how can I convert this write-attribute cli to java api - using the ModelNode object ?
thanks,
Yigal
-
3. Re: Jboss cli problem - adding global-module
jaysensharma Nov 28, 2012 10:25 AM (in response to igalp)It looks liem a Bug
-
4. Re: Jboss cli problem - adding global-module
nickarls Nov 29, 2012 2:20 AM (in response to jaysensharma)Hmm. Not sure, I just can't think of the correct CLI syntax for adding sub-elements like that right now :-/
-
5. Re: Jboss cli problem - adding global-module
ssilvert Nov 29, 2012 7:56 AM (in response to igalp)2 of 2 people found this helpfuligal pinhasi wrote:
I already saw this possiblity - the problem is that I cant add another global-module - but just override the current definition.
- Do you know how can I add a global-module using the add operation ?
- do you how can I convert this write-attribute cli to java api - using the ModelNode object ?
You can add another module with write-attribute, but you have to re-write the entire list. This is a common problem with list attributes. Sometimes list-management operations are provided by the subsystem author and sometimes they are not. I think this is being addressed though.
/subsystem=ee/:write-attribute(name=global-modules,value=[{"name" => "middleware.magic.com","slot" => "main"},{"name" => "fooware.magic.com","slot" => "foo"}]) {"outcome" => "success"}
Stan
-
6. Re: Jboss cli problem - adding global-module
armahdi Feb 1, 2017 2:09 AM (in response to ssilvert)has this been addressed. i tried to do the same and it over wrote my whole list of global modules.
-
7. Re: Jboss cli problem - adding global-module
ahoffer Feb 2, 2017 8:46 AM (in response to armahdi)You should be able to add to the list of global modules using the "list-add" operation.
/subsystem=ee:list-add(name=global-modules,value={name=middleware.magic.com})
Correction: Apologies, the list-add operation isn't available in AS7, but in WildFly.