OK- I agree.  I will modify the existing PrefixDeploymentSorter.java.  I
will also make it the default comparator in jboss-system.xml.  Should I aply
these changes to Branch_3_0?

-Larry


> Yes, that is the only way that makes sence for me at least.
>
> I've submitted my sorter to "patches"...
>
> Best regards,
> Per
>
> > Your applications depends on the system beind deployed so you better put
> > your numbered deployments at the end.
> >
> > marcf
> >
> > |The best solution I have found is to use the <classpath... /> tag in
your
> > |default jboss-service.xml.  Certainly putting it in your
jboss-system.jar
> > |seems a bit extreme.
> > |
> > |-Larry
> > |
> > |> I ended up creating my own Comparator since i want the
> > non-numbered files
> > |to
> > |> deploy first using the rules of the DeploymentSorter and then deploy
> > |> according to their numbered prefix. In order to actually use
> > is however,
> > |the
> > |> only way I found that worked was to add my class to jboss-system.jar,
> > |> otherwise i got a ClassNotFoundException (e.g. when jaring it up and
> > |putting
> > |> the jar in lib). Is this a bug or intended?
> > |>
> > |> Best regards,
> > |> Per
> > |>
> > |> > 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
> > |> >
> > |> > > 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.sar
> > |> > > From what i can see from testing the following works:
> > |> > >
> > |> > > 1. Label them 10-jxta.sar and 20-ozone.sar
> > |> > >
> > |> > > 2. keep the names but make sure the timestamp of the jxta.sar is
> > |earlier
> > |> > > than the ozone.sar
> > |> > >
> > |> > > 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

Reply via email to