This content has been marked as final.
Show 3 replies
-
1. Re: deploy .sar after .ear in Jboss
ianmechura Apr 3, 2006 11:04 PM (in response to _monkey_)The deploy-hasingleton-service.xml file gives an example of one way to do this:
<mbean code="org.jboss.ha.singleton.HASingletonController" name="jboss.ha:service=HASingletonDeployer"> <depends>jboss:service=${jboss.partition.name:DefaultPartition}</depends> <depends optional-attribute-name="TargetName">jboss.system:service=MainDeployer</depends> <attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute> <attribute name="TargetStartMethod">deploy</attribute> <attribute name="TargetStartMethodArgument">${jboss.server.home.url}/deploy-hasingleton</attribute> <attribute name="TargetStopMethod">undeploy</attribute> <attribute name="TargetStopMethodArgument">${jboss.server.home.url}/deploy-hasingleton</attribute> </mbean>
-
2. Re: deploy .sar after .ear in Jboss
ianmechura Apr 3, 2006 11:05 PM (in response to _monkey_)You would put the above depends statement in you jboss-service.xml file located in the META-INF directory of you .sar file
HTH,
Ian :-) -
3. Re: deploy .sar after .ear in Jboss
jboss2005_01 Apr 7, 2006 10:19 AM (in response to _monkey_)Or use the ordered deployment mechanism provided by JBoss...
Replace in the jboss.service.xml<attribute name="URLComparator">org.jboss.deployment.DeploymentSorter </attribute>
with<attribute name="URLComparator">org.jboss.deployment.scanner.PrefixDeploymentSorter </attribute>
This way you can add numbers in front of your archive files to specifiy the deployment order. Non-prefixed packages are deployed first respecting default deployment order, prefixed are deployed next according to the prefix (nnn-name.xAR)
Cheers,
Kurt