5 Replies Latest reply on Feb 18, 2004 12:22 AM by juha

    Deploying custom services as a SAR.

    ravinag

      Hi,

      I am a newbee to JBoss. Can somebody point me to documentation on how to create a SAR and deploy?

      --
      Ravi

        • 1. Re: Deploying custom services as a SAR.
          jonlee

          There is not much involved in the creation of a SAR. You can either have them packed or unpacked. With the JBoss 3.2.x distributions, there are plenty of examples of unpacked SARs in your deploy directories. You can pack them using the standard Java jar utility. Rename the file extension from a .jar to .sar after packing them.

          JAR libraries are placed in the root directory of the SAR. Classes are also placed in the root directory of the SAR and retain their directory structures, representing their fully qualified name.

          In the META-INF directory, you will require a jboss-service.xml to describe any key elements of the SAR deployment. The jboss-service_3_2.dtd can be found in docs/dtd in the JBoss binary distribution.

          The paid-for-documents also contain further technical information.

          • 2. Re: Deploying custom services as a SAR.
            pradeepbhat

            What does "Creating Custom Services" mean ?Can some one please explain.
            Thanks

            • 3. Re: Deploying custom services as a SAR.

              Hosting your custom service implementations (not provided by the app server) on JBoss.

              • 4. Re: Deploying custom services as a SAR.
                pradeepbhat

                Thanks!
                How do I access the service? Using JNDI lookup?

                • 5. Re: Deploying custom services as a SAR.

                  Using the RMIAdaptor you can lookup from JNDI you can invoke the attributes and operations you expose in the service's (MBean's) interface.