-
30. Re: JBoss AS 5 CR1 deployment sorting
omerlin Aug 26, 2008 8:14 AM (in response to zithuba)Hello,
Why is it so complex ?
I have an EAR, some JMS queues depending on a RAR file.
My ear refuse to deploy because the RAR file is deployed afterwards.
I understand that there are some complex cases ... but this one is very simple - and do not work!
My only solution for the moment is to deploy manually first RAR and -service.xml file and then EAR.
I hope final release will include a KISS solution for deployment, documented - it would be a wonderfull enhancement
regards,
Olivier -
31. Re: JBoss AS 5 CR1 deployment sorting
alesj Aug 26, 2008 8:57 AM (in response to zithuba)"omerlin" wrote:
I have an EAR, some JMS queues depending on a RAR file.
My ear refuse to deploy because the RAR file is deployed afterwards.
Looking at the legacy orderinglegacyOrder.put(".deployer", 50); legacyOrder.put("-deployer.xml", 50); legacyOrder.put(".aop", 100); legacyOrder.put("-aop.xml", 100); legacyOrder.put(".sar", 150); legacyOrder.put("-service.xml", 150); legacyOrder.put(".beans", 200); legacyOrder.put(".rar", 250); legacyOrder.put("-ds.xml", 300); legacyOrder.put(".har", 350); legacyOrder.put(".jar", 400); legacyOrder.put(".ejb3", 400); legacyOrder.put(".par", 400); legacyOrder.put(".war", 500); legacyOrder.put(".wsr", 600); legacyOrder.put(".ear", 650); legacyOrder.put(".jar", 700); legacyOrder.put(".zip", 750); legacyOrder.put(".bsh", 800); legacyOrder.put(".last", 900);
RAR should kick in before EAR.
It could be that some rar piece depends on some -jboss-beans.xml,
which is unfortuantely missing in the CR1 code,
but should be fixed in the trunk. -
32. Re: JBoss AS 5 CR1 deployment sorting
omerlin Aug 27, 2008 3:12 AM (in response to zithuba)Hello,
I have some questions on Legacy deployers :
1) Generally, a war uses jar module or jar module deployed inside an ear.
So why setting war order before ear and jar ?
2) I we want to change this order do we really recompile a "Custom" deployer ?
How to manage the dependencies between components in the new POJO micro container ?
regards,
Olivier -
33. Re: JBoss AS 5 CR1 deployment sorting
alesj Aug 27, 2008 3:56 AM (in response to zithuba)"omerlin" wrote:
1) Generally, a war uses jar module or jar module deployed inside an ear.
So why setting war order before ear and jar ?
Dunno the exact reason, regarding why war is before ear/jar.
But this can easily be changed.
See LegacyDeploymentContextComparator in deployers.xml.
Or if you describe explicit dependencies, then the order doesn't matter."omerlin" wrote:
2) I we want to change this order do we really recompile a "Custom" deployer ?
This order has nothing to do with deployers.
This is just how deployments are ordered.
Deployers order is based on DeploymentStage and metadata input/output.
And since deployments are done in sequence (for a particular DeploymentStage),
the deployments that are on top get processed first."omerlin" wrote:
How to manage the dependencies between components in the new POJO micro container ?
You have multiple ways. ;-)
Read MC docs or ask more precise question on MC user forum. -
34. Re: JBoss AS 5 CR1 deployment sorting
abhinav.ind Feb 10, 2009 5:26 AM (in response to zithuba)hi guys
i have that war and -ds.xml deploy order issue. i used the code u mentioned
-beans.xml
200
but it dint help.
is thr any other solution, i m using jboss5ga
thanks -
35. Re: JBoss AS 5 CR1 deployment sorting
abhinav.ind Feb 10, 2009 5:31 AM (in response to zithuba)sorry i dont hav war, i hav sar and my -ds.xml is in root of that sar.
plz help -
36. Re: JBoss AS 5 CR1 deployment sorting
jaikiran Feb 10, 2009 5:40 AM (in response to zithuba)Let's continue this discussion in your other thread here http://www.jboss.org/index.html?module=bb&op=viewtopic&t=150147