1 Reply Latest reply on Aug 5, 2005 4:46 PM by Viet

    SAR or EAR?

    Patrick Dalla Bernardina Apprentice


      I'm developing a portlet that will contain Model Classes, Hibernate Mappings and the Portlet classes.

      I would like to deploy the portlet as SAR or EAR which includes the jar files, har files and war files.

      Is it possible? How do I configure this?

        • 1. Re: SAR or EAR?
          Viet Master

          you can do either sar or ear, both can deploy services (the har file is a service).

          if you use a sar file, just put the all the files at the root of the sar they will be deployed.

          if you use an ear file, you need to declare :

          war in META-INF/application.xml
          jar referenced by other files through META-INF/MANIFEST.MF using the classpath manifest entry
          har in META-INF/jboss-app.xml

          a link http://wiki.jboss.org/wiki/Wiki.jsp?page=EARSAR explaining jboss-app.xml

          for the war and the jar it is pretty much standard, anyway all of this can be found in the online documentation.

          you can take the forums as an example too