aspose file tools*
The moose likes JBoss/WildFly and the fly likes Deployment wars inside ear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deployment wars inside ear" Watch "Deployment wars inside ear" New topic
Author

Deployment wars inside ear

Andrey Chu
Greenhorn

Joined: Jun 08, 2010
Posts: 2
Hello

I have project composed by different war and jar modules
My current directory structure:
/server/.../deploy
--XXX.ear (directory, not file)
-----W1.war
-----W2.war
-----W3.war

For example i want to update my second war file W2.war. If i am changing only this file in XXX.ear directory, nothing happens. If i change entire XXX.ear folder, jboss starting redeploying all war files(W1, W2, W3).
But, there are many wars in my ear directory. I want to force jboss update only and only WARs, i changed, not every WAR in the ear.
Can anyone help me configuring jboss deployer to wathc into ear directory and update changed war files, and hold unchanged.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10266
    
168

Andrey,

Welcome to JavaRanch

Which version of JBoss AS are you using? Starting AS-5, any changes to inner deployments (like war1.war) will trigger the redeployment of the entire application (all the .wars in the .ear). From what I remember, in earlier AS version, changing the inner deployment would only trigger redeployment of that inner deployment. By the way, how are you trying to trigger the redeployment of the .wars?

[My Blog] [JavaRanch Journal]
Andrey Chu
Greenhorn

Joined: Jun 08, 2010
Posts: 2
Hello, Jaikiran
I have 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)

If i am replacing war file inside ear folder, redeployment do not start..
I am replacing war files using cp command.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deployment wars inside ear