-
1. Re: How can I deploy the -ds.xml before my EJBs when they ar
pilhuhn Mar 30, 2004 7:35 AM (in response to neva)Order depends on two things:
- russion doll packaging (you can have a jar and a war in a ear)
- order of extensions, which is SAR, RAR, *ds.xml, *service.xml, JAR, WAR, WSR, EAR, ZIP, BSH, last -
2. Re: How can I deploy the -ds.xml before my EJBs when they ar
neva Mar 30, 2004 8:02 AM (in response to neva)Thanks for thr reply..
But that applies for deployment sequence in the /deploy folder but not within the .ear, right?
To deploy the ear (the big doll), the war and jar included in it(small dolls) will be deployed but which is deployed first, the war of the jar? -
3. Re: How can I deploy the -ds.xml before my EJBs when they ar
neva Mar 30, 2004 9:22 AM (in response to neva)I tried to implement the Russian Doll Packaging in a rather stupid way to see what happens in this case. I put my -ds.xml file in a jar called firstJar.jar then I put that one into another jar called secondJar.jar (so that the -ds.xml can be considered a smaller doll that other jars)
Then I created my ear to contain the war and all jars including secondJar.jar.
When I hot deploy that, again some jars get deployed before secondJar. If, on the other hand, I close down jboss and restart it, it works fine... Everytime I shutdown jboss and start all goes well. Does that mean that there is something wrong with jboss when it comes to the Russian Doll packaging in hot deploying?? -
4. Re: How can I deploy the -ds.xml before my EJBs when they ar
pilhuhn Mar 30, 2004 10:10 AM (in response to neva)Within the big doll, the same rules apply. SO the jar(s) within an ear are always deployed before the war(s).
For the deploy order of jars in deploy/ - afaik this follows the dir walking semantics of java.io.File. If you want to enforce a certain order, use the url prefix sorter. You can configure this in conf/jboss-service.xml. Look for Deployment Scanning. -
5. Re: How can I deploy the -ds.xml before my EJBs when they ar
triathlon98 Mar 30, 2004 12:06 PM (in response to neva)For some reason, I always thought this could be controlled using application.xml, but I could be wrong here.
Joachim -
6. Re: How can I deploy the -ds.xml before my EJBs when they ar
neva Mar 31, 2004 1:19 AM (in response to neva)I tried to use application.xml to control the order in which jars are deployed but the order in which the modules are defined doesn't make any difference. I tried to look for specific tags or something but no luck..
pilhuhn, the war is deployed before the jar (u r right) but what about the order in which the jars are deployed? how does the Jboss decide which to deploy first..Is it random? -
7. Re: How can I deploy the -ds.xml before my EJBs when they ar
pilhuhn Mar 31, 2004 3:10 AM (in response to neva)wrt jar ordering: afaik: this uses the ordering that java.io.File provides you. Have a look at the javadoc.
You can use the prefix sorter to explicitly give an ordering. Have a look at conf/jboss-service.xml! -
8. Re: How can I deploy the -ds.xml before my EJBs when they ar
neva Mar 31, 2004 3:30 AM (in response to neva)I tried using the PrefixDeploymentSorter but it didn't work. I read somewhere that this works only for files in the deploy folder but not for files within one ear.
-
9. Re: How can I deploy the -ds.xml before my EJBs when they ar
jae77 Mar 31, 2004 8:31 AM (in response to neva)is there any reason you are just dropping the -ds.xml files into the deploy directory directly?
that would cause them to be deployed before any of the jar files. your build/deployment process could handle doing all the copy/deletes to/from the deploy directory. -
10. Re: How can I deploy the -ds.xml before my EJBs when they ar
neva Mar 31, 2004 11:02 AM (in response to neva)-jae, the point is that we want everything in an ear so that we can ship it to the customer as one file.
-
11. Re: How can I deploy the -ds.xml before my EJBs when they ar
jae77 Mar 31, 2004 12:09 PM (in response to neva)you could still do that - just give them a zip file w/ the datasources externalized from the ear, but still contained w/in the zip. then all they need to do is unzip and deploy.