3 Replies Latest reply on May 29, 2009 9:11 AM by dimar1975

    .SAR file extension deprecated in JBoss 5 ?

      Hi all !
      Today I have deployed, by mistake, my Mbeans using the archive .JAR extension (instead of .SAR). However JBoss 5 grafecully started my MBeans.
      I wonder, is there still any difference if I deploy my MBeans as .SAR or .JAR ?
      thanks a lot
      marco

        • 1. Re: .SAR file extension deprecated in JBoss 5 ?
          dimitris

          It's not a bug, it's a feature :-)

          I think AS5 primarily is looking for the META-INF/jboss-service.xml descriptor, rather than checking the extension.

          • 2. Re: .SAR file extension deprecated in JBoss 5 ?
            alesj

             

            "dimitris@jboss.org" wrote:
            It's not a bug, it's a feature :-)

            Yup, this is now treated the same way.

            "dimitris@jboss.org" wrote:

            I think AS5 primarily is looking for the META-INF/jboss-service.xml descriptor, rather than checking the extension.

            OK, there is more to it than this. ;-)

            The actual change is that we do 2 diff phases of deployment recognition.
            1st == structure
            2nd == real --> parsing, cl, install, ...

            And it's the 1st phase that legally doesn't see any diff between .sar and .jar.
            e.g. both have META-INF as their metadata location
            The rest is just how you read the files.

            • 3. Re: .SAR file extension deprecated in JBoss 5 ?

              ok, this is a good news since when developing with Eclipse you can use only standard extensions (.jar, .war, .ear).
              If you wanted to pack classes in a .sar archive, you had to create your own script to rename it.
              regards
              Marco