4 Replies Latest reply on May 5, 2004 9:41 PM by edelarosa

    Packacking EAR with SAR

    nort

      Hello,

      what is the best pattern to package an EAR application with some JMX services within a SAR file? I want to deploy both within one application file. I tried to include the SAR within the EAR, but the services were not deployed. The documentation says (perhaps an old one?) that all resources (Jars, ears, ...) should be packed within the SAR file. In my opinion this way is not the best one.

      Juraj

        • 1. Re: Packacking EAR with SAR
          samfra

          Maybe you could have a look at how hibernate integrates into Jboss. Not to use Hibernate, but they package differents Sar,Jar,Ear with mbeans...


          http://www.hibernate.org/Documentation/UsingHibernateWithJBoss

          As soon as you have got a solution, don't hesitate to post it.. There is a lack of help here ;o(

          • 2. Re: Packacking EAR with SAR
            nort

            Here is the solution:

            EAR:
            |
            |----META-INF
            | |---- application.xml
            | |-----jboss-app.xml
            | |-----MANIFEST.MF
            |
            |-----EJBJAR.jar
            |-----EJBJMX.sar

            The jboss-app.xml includes the following entry:

            <jboss-app> DPE-services.sar </jboss-app>

            Juraj

            • 3. Re: Packacking EAR with SAR
              samfra

              humm what is this DPE-services.sar ?? Do you mean this ?

              <jboss-app>EJBJMX.sar</jboss-app>

              Do you use Jboss-Ide within Eclipse to generate all this ? I am looking for more help and tutorials about that, ..

              thanks from Switzerland

              • 4. Re: Packacking EAR with SAR
                edelarosa

                hello nort,

                try this one in your jboss-app.xml:

                <jboss-app>
                 <module>
                 <service>EJBJMX.sar</service>
                 </module>
                </jboss-app>
                


                and add this to your application.xml:

                <application>
                 ....
                 <module>
                 <connector>EJBJMX.sar</connector>
                 </module>
                </application>
                


                then try to run jboss and see if your service loads.

                HTH