This has been available since (I think) 3.0 RC2.  Take a look at the default
jboss-service.xml file.   At the bottom in the Deployment Scanning section,
look for an attribute named "URLComparator".  The default comparator
(DeploymentSorter) sorts by type in this order: *.sar, *service.xml, *rar,
*jar, *war, *wsr, *ear, *zip, *.

There is a second comparator (commented out) called PrefixDeploymentSorter.
If you use this then all deployments that start with a numeric prefix will
be deployed in order of those prefixes.  Non-prefixed deployments are
deployed last.  Ties are broken using the sorting from DeploymentSorter
above.

If this is still not cutting it, then you are free to implement an instance
of java.util.Comparator that is capable of comparing two URL objects.

-Larry

----- Original Message -----
From: "Per Nyfelt" <[EMAIL PROTECTED]>
To: "Jboss-Development@Lists. Sourceforge. Net"
<[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 6:29 AM
Subject: [JBoss-dev] sar startup ordering


> I've been trying to find what was decided for how to specify in what order
> sar archives should be loaded and started, but the mail discussions I've
> found points in many different directions. Could anyone please set me
> straight?
>
> I have a jxta.sar that i want to start before a ozone.jar
> From what i can see from testing the following works:
>
> 1. Label them 10-jxta.jar and 20-ozone.jar
>
> 2. keep the names but make sure the timestamp of the jxta.jar is earlier
> than the ozone.jar
>
> Is there any mechanism that allows this behaviour to be configured?
>
> Best regards,
> Per
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
>


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to