2 Replies Latest reply on May 11, 2017 4:56 PM by Kevin Mark

    Update MDB Delivery Active configuration from Admin Console

    Kevin Mark Newbie

      Hello,

       

      I have configured Wildfly 10 to use the ActiveMQ Resource Adapter in order to connect to a remote AMQ server and consume messages from it. Everything is working well at the moment, but I have the need to dynamically start/stop the consumption of messages without the whole webapp being suspended.

       

      I have followed the guide here: Message Driven Beans Controlled Delivery - WildFly 10 - Project Documentation Editor

       

      Following the above, I added the @DeliveryActive annotation to my MDB and I am actually able to start/stop the listener dynamically through the Jboss CLI, but I would much prefer to do this through the Admin Console.

       

      The reason for this is that I have non-developer co-workers who will manage support for this app and I need to give them this ability, but would like to make it as easy as possible for them. Using the Admin Console is straightforward and anyone can navigate it intuitively, unfortunately, the CLI has a small learning curve and is not as intuitive.

       

      I can't find any documentation on this action through the Console other than suspending the entire app itself, which is not the best option (at that point, ill just train them on the CLI).

       

      It may be worth noting that I do not HAVE to use the methodology above, if there is another way to start/stop the JMS listening of an MDB and it is achievable through the Admin Console, then ill definitely switch to that methodology. I have read about being able to suspend subsystems instead of the whole app, but I can't not figure out how to do this through the Admin Console and would rather target the specific MDB itself, rather than the entire EJB subsystem.

       

      As a side question: Should all actions within the CLI have a corresponding action within the Admin Console and vice versa? I was under the impression that the Admin Console was the CLI with a GUI, how far is that from the truth?

       

      Thanks for your time!

      Kevin.

        • 1. Re: Update MDB Delivery Active configuration from Admin Console
          Justin Bertram Master

          As a side question: Should all actions within the CLI have a corresponding action within the Admin Console and vice versa?

          I don't believe so.

           

          I was under the impression that the Admin Console was the CLI with a GUI, how far is that from the truth?

          I think for that kind of relationship between the Admin Console and the CLI to be feasible the Admin Console would basically need to be auto-generated from the server's internal object model in order to expose all the same management functions that the CLI does. I haven't used the web console in awhile, but I think your impression is far from the truth. My understanding is that only the most common admin operations are exposed via the web console and the rest are available through other, more powerful interfaces which are all essentially equivalent (e.g. JBoss CLI, HTTP, JMX, etc.).

           

          If you want a GUI with the power of the CLI then I would recommend you use a JMX tool like JConsole or VisualVM.

          • 2. Re: Update MDB Delivery Active configuration from Admin Console
            Kevin Mark Newbie

            Thanks for the information jbertram, I had assumed this may be the case, but it is good to confirm it. Also, thanks for the leads on the other JMX tools, i'll have a look.