java - How to enable remote management operations in Wildfly -


trying read values standalone.xml in wildfly, have got following error message:

{     "outcome" => "failed",     "failure-description" => "wflyctl0379: system boot in process; execution of remote management operations not available" } 

in jboss 7.1.1 works fine, please see java coding inside ejb singleton:

@startup @singleton @concurrencymanagement(concurrencymanagementtype.bean) public class testbean {     @postconstruct     private void init() throws exception {                 final modelnode request = new modelnode();                 request.get(clientconstants.op).set("read-resource");                 request.get("recursive").set(true);                 request.get(clientconstants.op_addr).add("subsystem", "security");                  final modelcontrollerclient client = modelcontrollerclient.factory.create(inetaddress.getbyname("127.0.0.1"),                         9029);                 final modelnode response = client.execute(new operationbuilder(request).build());     } } 

this error comes @ moment when client.execute() tries modelnode.

i'd appreciate help!

don't know el lord code trying accomplish, in project, example, using pattern of startup singleton initialize application. now, during thing, need programatic login - logout wildfly , logout credential cache flushing depends on acccessing security domain. problem whole remote management not accessible during startup , shutdown (it starts after , ends before application started / stopped). have posted similar question here: https://developer.jboss.org/message/944842#944842


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -