Re: Purpose of EAR- and SAR-files



On Tue, 16 Jan 2007 15:41:24 -0000, Bart op de grote markt <bartwarnez@xxxxxxxxxxxx> wrote:

Hello,

I recently assisted in deploying applications that use Tomcat and
JBoss. I am pretty new to all of this so I try to understand it all.
But one question I've been googling for already a long time while I did
not find a clear answer: What is the purpose of EAR- and SAR files in
a JBoss deployment. What do you put in the EAR and what in the SAR?
Are there connections? Or is there maybe anything on the internet that
I certainly should read?
I assume it is all pretty simple, but I don't know ;).

An EAR file (Enterprise ARchive) is the standard way of deploying an enterprise Java application. In theory you can build an EAR file and deploy it on any JavaEE server. In practice it's rarely that straightforward. A SAR file (Service ARchive) is JBoss-specific file for deploying service POJOs (themselves a JBoss-specific concept - http://docs.jboss.org/ejb3/app-server/tutorial/service/service.html).

Dan.

--
Daniel Dyer
https://watchmaker.dev.java.net - Evolutionary Algorithm Framework for Java
.



Relevant Pages

  • Re: JBoss do not deploy .jar when importing
    ... When in a java file there is the "import", JBoss do not deploy the .jar ... How are you deploying the jar? ...
    (comp.lang.java.programmer)
  • Setting precompile jsp option on jboss
    ... file while jboss is deploying it. ... In websphere, we can specify this option from the admin console. ...
    (comp.lang.java.programmer)
  • JBoss EJB MessageContext Exception
    ... I start JBoss and run my application. ... JBossIDE). ... Whenever this exception is thrown I cannot redeploy correctly my ... When I try deploying my J2EE (it include EJB3.0, ...
    (comp.lang.java.programmer)
  • Many provider URLs in jndi.properties?
    ... I am deploying a J2EE application on Oracle IAS. ... I need the same EAR file to be deployed on many environments (client ...
    (comp.lang.java.help)