[jboss-as7-dev] Level for add operations
Kabir Khan
Kabir.Khan at jboss.com
Thu Jan 20 11:06:09 EST 2011
For the threads subsystem I register a description provider at profile => test => subsystem => threads. For that node I have an ADD_THREAD_FACTORY operation which implements ModelAddOperationHandler. I can then invoke that operation for the address profile => test => subsystem => threads to add a ThreadFactory. However, if I add more than one ThreadFactory, the last overwrites the previous, meaning I can only have one ThreadFactory.
What I originally had in mind was to register this add handler at profile => test => subsystem => threads => threadfactory => * , but when I try to invoke the operation for the address profile => test => subsystem => threads => threadfactory => threadfactoryA it fails since the model controller does not find the operation since that node does not exist yet (that node is what I am trying to add)
So, in a nutshell, I am unsure how to properly handle add operations.
Also, when parsing the xml into add operations I need the address that the add operation should apply to, where can I get that? At the moment I am just hard-coding it
More information about the jboss-as7-dev
mailing list