Overview of deployments
When talking about Java applications, we can categorize at least three types of application: Java Archive, Web Archive, and Enterprise Archive.
Each of the previously mentioned application types have their own specific extensions that are just for a readable purpose:
.jar
- Java Archive.war
- Web Archive.ear
- Enterprise Archive
As a matter of fact, all of them are essentially ZIP archive files.
When it comes to JBoss, there actually are two more types of application you can deploy. One is called Service Archive (.sar
extension), and the other is an XML file which declares, essentially, a piece of EAP configuration, such as data sources, JMS queues, and so on.
Tip
Keep in mind that using *-ds.xml
and *-jms.xml
files might be a good idea in a development environment to configure those resources, but there are many drawbacks you should consider:
Management tools, such as CLI and Web Console, cannot be used to manage resources deployed in such a way.
Any security concerns...