2 Replies Latest reply on Oct 22, 2002 8:35 AM by petertje

    howto layout mbeans and ejb's in template

    dubbeld

      How should I use the template when developing a package with EJB's and MBeans together.

      Should I build all the classes for MBeans and EJB's under
      src/main/ in org.xxxx.yyy etc?

      Or should I make subtree:
      src/main/ejb and org.xxxx.yyy for all ejb's and
      src/main/jmx and org.xxxx.yyy for all mbeans
      and modify build.xml?

      Sorry if it is a newby quest, but I tried to find a answer in the forums, payed jboss docs, Wrox j2ee and ejb books without luck.

        • 1. Re: howto layout mbeans and ejb's in template
          sgturner

          Here is how I would do it:

          org.xxx.yyy.mbeans.beans
          org.xxx.yyy.mbeans.interfaces
          org.xxx.yyy.ejbs.beans
          org.xxx.yyy.ejbs.interfaces

          There may be further subdivion under this if you want.



          • 2. Re: howto layout mbeans and ejb's in template

            > Or should I make subtree:
            > src/main/ejb and org.xxxx.yyy for all ejb's and
            > src/main/jmx and org.xxxx.yyy for all mbeans
            > and modify build.xml?

            Yep, that's how i would do it. You'll different jars for deployment anyway. Of course you could generate different jars from one source tree (e.g. src/main/org/xxx...) also, but personally i think that is bad practice and leads to less understandle and maintainable source code structure and build files.