3 Replies Latest reply on May 30, 2006 11:14 AM by Rich win

    what does service .sar do

    Rich win Newbie

      could somebody explain what does .sar(jboss service) do.
      I'm new to Jboss, others application server doesn't use .sar, I have read JBoss docs, but didn't get the point. Jboss use all of the place.
      what does .sar do?
      when should I user .sar
      does service mean it will be loaded when JBoss start?
      if my product use JBoss and use .sar, how can I make it portable to others app server. is there any equlivant things in others app server?


        • 1. Re: what does service .sar do
          VisolveGroup Novice


          Basically SAR (service archive) file is used to deploy the JBoss services. A SAR file or directory contains a JBoss service definition file (META-INF/jboss-service.xml) and other resources needed by the service.

          You should use SAR file only, if you like to add your own services to JBoss. This can be done by writing your own MBean services and deploy it as SAR file.

          Jboss registers and load the defined MBean service at startup time or during it's deployment.

          As the MBean services are written using MBean interface (org.jboss.util.Service), I don't think Mbean services (SAR files) are portable.

          Visolve JBoss Team

          • 2. Re: what does service .sar do
            Rich win Newbie

            Thank you for the reply.

            just want to confirm if I understand correctly:
            .sar are always loaded when the JBoss start., and this is the biggest benifit of using .sar.
            The MBean is the same thing as .sar
            Hibernate configuration files can be created as a .sar,this will make all of objects defined in mapping files loaded from database when JBoss start.


            • 3. Re: what does service .sar do
              Rich win Newbie

              This alomot get down to basement. any body can answer the questions?