Purpose of EAR- and SAR-files

  • Thread starter Bart op de grote markt
  • Start date
B

Bart op de grote markt

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 ;).

Thx!
 
D

Daniel Dyer

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top