This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9947
    
161

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.
 
wood burning stoves
 
subject: Deployment wars inside ear
 
Similar Threads
Access resource that lives in a different war
Deploying EAR files on JBOSS
Find shortest string with all the words in any order
Array of Hashtables :-How to display
how to share web resources(html,jsp,classes in WEB-INF/classes) ascoss wars in a single ear