This content has been marked as final.
Show 3 replies
-
1. Re: Order of deploying EARs in deploy / farm directory
kaobe May 26, 2004 4:39 AM (in response to marlig)Hi Marlig,
I have not tried it, but it could work for you if you add a depends tag to your deploymentscanner mbean in jboss-service.xml. There you tell it it depends on the FarmMember mbean in farm-service.xml. So it should deploy the farm directory first.
Another possibility could be to put the mbean definition from farm-service before the one in jboss-service. I think the xml-files are deployed from top to bottom.
Peter -
2. Re: Order of deploying EARs in deploy / farm directory
marlig May 26, 2004 7:02 AM (in response to marlig)"kaobe" wrote:
I have not tried it, but it could work for you if you add a depends tag to your deploymentscanner mbean in jboss-service.xml. There you tell it it depends on the FarmMember mbean in farm-service.xml. So it should deploy the farm directory first.
Another possibility could be to put the mbean definition from farm-service before the one in jboss-service. I think the xml-files are deployed from top to bottom.
Hi Peter,
thanks for your remarks. I tried the first one, but it kind of screws up the whole deployment process, so that nothing get's deployed correctly anymore.
The second one seemed to be more promising. Until I realized that I need the datasource installed before anything else. So the correct deployment order (for me) would be deploy(datasource)-farm-deploy(rest).
I played around a bit and found that I can create a directory deploy.last2 which get's deployed after deploy.last, where the farm-service.xml resides. This does the trick. Now first the datasource and all the other essential stuff from deploy gets installed, then what's in farm, and then the remaining parts of my application.
Btw, I'm using JBoss 3.2.4RC2.
Greetings
Martin -
3. Re: Order of deploying EARs in deploy / farm directory
slaboure May 26, 2004 7:06 AM (in response to marlig)yes, your last2 trick should work. Otherwise, I think it is possible to add depends tags in jboss-app.xml file as well, this should be in the DTD.
sacha