Why are you packaging a war inside .sar instead of an .ear?
I thought if you are developing a service it should be a sar archive. Mine is a Mobile Cloud Service with features like Data Synchronization, Push Notifications etc. It is not a Java EE App. The war file is a web interface to the system and it relies on the dependencies of its parent which is the sar file.
This setup worked great in JBoss-5.1.0.GA and something that I learned doing on JBoss Portal which also used to ship as a sar file packaged with numerous war files.
I realize that JBoss AS 7 is a complete rework and things are completely new here. Does this mean that you cannot package war files inside a sar file in AS 7. If yes could please be able to tell me how to go about achieving it.
1 of 1 people found this helpful
You can just package the jboss-service.xml in the .ear/META-INF folder and also package the .war within that .ear. You don't need a .sar