1 Reply Latest reply on Mar 7, 2003 6:21 AM by prpatel

    Is MBean applicable?

    fcoury

      I need to make my application configuration depend on a xml file and would like to make it hot deployable.

      Is it possible to achieve that (send a few configuration strings) using MBeans? Is there any sample on that?

      TIA,

      Felipe Coury

        • 1. Re: Is MBean applicable?
          prpatel

          I'm not certain what you aim is (is this MBean a service?) but have a look at mail-service.xml in your deploy/ directory. You can see in this ServiceMBean config file that XML is set as an attribute under the name Configuration:

          <!-- Test -->

          <!-- Change to your mail server prototocol -->

          ....

          If you browse the code for the mail service, you will see that when setConfiguration is called the XML "fragment" beginning with is set to a local XML node object, then parsed to setup the contained properties.


          cheers
          prp