2 Replies Latest reply on Jul 24, 2003 2:43 AM by Viet

    Nukes change

    Viet Master

      I commited some changes in the codebase.

      First the codebase is synched with jboss-3.2.2rc2 (that is the head of the branch 3.2, but the official release should be around tomorrow, so don't worry)

      Nukes fully uses now a model mbean, we dropped the hybrid we had before. So now each component is really a managed resource and the mbean is an NukesMBean. NukesMBean extends ModelMBeanInvoker.

      So the jboss-service.xml changes a little bit, now it is :

      <mbean
      code="your module here"
      name="nukes.modules:name=blah"
      xmbean-dd="" // on purpose
      xmbean-code="org.jboss.nukes.component.NukesMBean">
      ...
      ...

      ...
      .....



      the big difference is that the attribute have moved inside the xmbean tag. that data is given directly to the NukesMBean instead of being configured by the ServiceConfigurator

      the xmbean-dd="" tells jboss to use the xmbean tag to configure the resource.

      xmbean-code="org.jboss.nukes.component.NukesMBean" tells jboss to use NukesMBean for the model mbean.

      NukesMBean will introspect the component class and then creates the ModelMBeanInfo that will be used by the ModelMBeanInvoker to know how the component behave.

      julien

        • 1. Re: Nukes change
          Eric Chow Apprentice

          Hi,

          I update the source from CVS.

          But it could not compile successfully.

          _default:compile-classes:
          [mkdir] Created dir: D:\Projects\nukes\nukes\output\classes
          [depend] Deleted 0 out of date files in 0 seconds
          [javac] Compiling 121 source files to D:\Projects\nukes\nukes\output\classes
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\component\ComponentSupport.java:23: cannot resolve symbol
          [execmodules] symbol : class SynchronizedCachePolicy
          [execmodules] location: package util
          [execmodules] import org.jboss.util.SynchronizedCachePolicy;
          [execmodules] ^
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\component\ComponentSupport.java:286: cannot resolve symbol
          [execmodules] symbol : class SynchronizedCachePolicy
          [execmodules] location: class org.jboss.nukes.component.ComponentSupport
          [execmodules] cache = new SynchronizedCachePolicy(new LRUCachePolicy(min, max));
          [execmodules] ^
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\core\modules\block\BlockModule.java:61: cannot resolve symbol
          [execmodules] symbol : variable UNREGISTERED
          [execmodules] location: interface org.jboss.system.ServiceMBean
          [execmodules] statesToIcons[ServiceMBean.UNREGISTERED] = "dot_grey.gif";
          [execmodules] ^
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\core\modules\block\BlockModule.java:62: cannot resolve symbol
          [execmodules] symbol : variable REGISTERED
          [execmodules] location: interface org.jboss.system.ServiceMBean
          [execmodules] statesToIcons[ServiceMBean.REGISTERED] = "dot_red.gif";
          [execmodules] ^
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\core\modules\block\BlockModule.java:71: cannot resolve symbol
          [execmodules] symbol : variable UNREGISTERED
          [execmodules] location: interface org.jboss.system.ServiceMBean
          [execmodules] upgrade[ServiceMBean.UNREGISTERED] = ACTION_NULL;
          [execmodules] ^
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\core\modules\block\BlockModule.java:72: cannot resolve symbol
          [execmodules] symbol : variable REGISTERED
          [execmodules] location: interface org.jboss.system.ServiceMBean
          [execmodules] upgrade[ServiceMBean.REGISTERED] = ACTION_NULL;
          [execmodules] ^
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\core\modules\block\BlockModule.java:81: cannot resolve symbol
          [execmodules] symbol : variable UNREGISTERED
          [execmodules] location: interface org.jboss.system.ServiceMBean
          [execmodules] downgrade[ServiceMBean.UNREGISTERED] = ACTION_NULL;
          [execmodules] ^
          [execmodules] D:\Projects\nukes\nukes\src\main\org\jboss\nukes\core\modules\block\BlockModule.java:82: cannot resolve symbol
          [execmodules] symbol : variable REGISTERED
          [execmodules] location: interface org.jboss.system.ServiceMBean
          [execmodules] downgrade[ServiceMBean.REGISTERED] = ACTION_NULL;
          [execmodules] ^
          [execmodules] 8 errors

          BUILD FAILED


          Eric

          • 2. Re: Nukes change
            Viet Master

            please download JBoss-3.2.2rc2 from sourceforge. it has been released yesterday.

            julien