6 Replies Latest reply on Oct 21, 2008 10:51 AM by alesj

    jboss-classloading.xml module names

    dmlloyd

      How are you guys naming your modules?

      I'm debating between:

      JBossRemotingAPI
      jboss-remoting-api
      jboss_remoting_api

      etc.

      Thoughts?

        • 1. Re: jboss-classloading.xml module names
          alesj

           

          "david.lloyd@jboss.com" wrote:
          How are you guys naming your modules?

          Dividing code into 3 pieces:
          - contract; jboss-xyz-spi
          - user usage; jboss-xyz-api
          - impl detail; jbos-xyz-plugins

          Not every sub-project has api, but we have spi and plugins for all.
          We're also letting maven know about the split, hence making it possible for
          super advanced users to change impl on top of spi. :-)

          • 2. Re: jboss-classloading.xml module names
            dmlloyd

            OK, so lowercase names, separated by hyphens ("-") is the convention then. I'll update my projects to match...

            • 3. Re: jboss-classloading.xml module names
              dmlloyd

              One more related question... when following the future library deployment model outlined by Sacha and Adrian, are we going to fit existing JARs with jboss-classloading.xml files, or make "wrapper" deployment units for each library that gets deployed?

              • 4. Re: jboss-classloading.xml module names
                alesj

                 

                "david.lloyd@jboss.com" wrote:
                are we going to fit existing JARs with jboss-classloading.xml files, or make "wrapper" deployment units for each library that gets deployed?

                I had this discussion with Scott in Neuchatel a few weeks ago,
                and we agreed that we should have both notions available for jboss artifacts:
                - (default) jboss-classloading.xml; to have custom control == some additional features
                - osgi manifest.mf

                The files should be mostly build by some tool, e.g. maven or ivy,
                in rare/custom cases we should provide some exception.

                For the external libs, we should first look into existing repos
                if they perhaps already exist in some osgi-ish form,
                else think of some mechanism.
                e.g. mapping module/jar name with predetermined CLMD

                • 5. Re: jboss-classloading.xml module names
                  dmlloyd

                  Am I correct in assuming that if jboss-classloading.xml is present, any osgi manifest will be ignored?

                  • 6. Re: jboss-classloading.xml module names
                    alesj

                     

                    "david.lloyd@jboss.com" wrote:
                    Am I correct in assuming that if jboss-classloading.xml is present, any osgi manifest will be ignored?

                    It's all about how we write and order deployers at the end. ;-)
                    But yes, if you ask me, we should consider our CLMD before anything else.