4 Replies Latest reply on Aug 5, 2013 11:19 AM by sewatech

    How to access to the native management API from a deployed application ?

    sewatech

      My goal would be to make a SessionContextListener or any other startup component which could access to the WildFly configuration and setup the JMS destinations, the datasource and some other application related resources.

       

      According to the documentation, the regular way to access to the native management API is this one ;

      ModelControllerClient client = ModelControllerClient.Factory.create(InetAddress.getByName("localhost"), 9999);
      

       

      My issue is that in such a component, I don't know the management port !

       

      Is there a in-container way to access to the native management API. Something like :

      ModelControllerClient client = ModelControllerClient.Factory.create();