I agree, lets get a real use case then see what the simplest solution is. In the mean time I don't see any reason not to make this pluggable, so that users can come up with any arbitrary complexity for deployment scanning which they have a jones for.... as long as we leave the default config setup as the UDS is now.
--jason Quoting David Jencks <[EMAIL PROTECTED]>: > 1. I think marc wanted the numbers at the beginning > 1myjar.jar > 2mysar.sar > 3myear.jar > etc. > > 2. I don't think mixing ordering schemes within 1 directory has any chance > of working. > > 3. I'd like to have an actual user ask for this over explicitly listing the > files in the deployment scanner. > > david jencks > > On 2002.04.21 18:09:45 -0400 Larry Sanderson wrote: > > I *really* don't like jar1.jar, sar2.sar. Let's make the naming > > convention > > a little less likely to stumbled upon by unknowing users. I suggest: > > jar_jb1.jar, sar_jb2.sar, etc... then the default sorting can look for > > "indexed" deployments first, and sort the remainder by type. This allows > > a > > simple, global comparator, but removes the fine-grained support you > > suggest. > > So given the following within a directory: > > > > jetty.sar > > my_ejb_ver4.jar > > jar_jb5.jar > > sar_jb10.sar > > > > This would order them thus: > > jar_jb5.jar <-- all "indexed" deployments first > > sar_jb10.sar > > jetty.sar <-- all others second, in order of sar,rar,jar,war,ear > > my_ejb_ver4.jar > > > > Hell, if they really need the flexibility you suggest then they can set > > up a > > second scanner, but I can't imagine any place where this is not > > sufficient. > > > > -Larry > > > > > I'm not sure specifying the global sorter for a whole scanner is the > > way > > we > > > want to go... on the other hand extensibility is nice... Do we want to > > > encourage people to have lots of scanners? > > > > > > At the risk of making things more complicated than necessary, yet > > striving > > > for simplicity, how about > > > > > > <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner" > > > name="jboss.deployment:type=DeploymentScanner,flavor=URL"> > > > > > > > > > <attribute name="ScanPeriod">5000</attribute> > > > > > > > > > <attribute name="URLs"> > > > <dir name="./deploy/core" order="type"/> > > > <dir name="./deploy/app" order="lexical"/> > > > <url name=".deploy/other/jar1.jar"/> > > > <url name=".deploy/other/sar2.sar"/> > > > <url name=".deploy/other/war3.war"/> > > > </attribute> > > > > > > > > > > > > <!-- Uncomment (and comment/remove version below) to enable usage > > of > > > the DeploymentCache > > > <depends > > > optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache</de > > pends> > > > --> > > > <depends > > > optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depend > > s> > > > > > > > > > </mbean> > > > > > > <mbean code="..." > > name="jboss.deployment:type=DeploymentSorter,order=type"/> > > > <mbean code="..." > > name="jboss.deployment:type=DeploymentSorter,order=lexical/> > > > > > > The deployment scanner looks up the requested ordering using the naming > > > pattern on the DeploymentSorter mbeans. > > > > > > I'm not sure if we really need explicit dependencies listed in the > > > DeploymentScanner. > > > > > > Striving towards simplicity (believe it or not;-) > > > > > > david jencks > > > > > > > > > On 2002.04.21 16:37:46 -0400 Larry Sanderson wrote: > > > > > As larry said (do you have rw yet?) > > > > > > > > Yup. I've already checked in at least one bug :-) > > > > > > > > > let's not shove it down people's throat > > > > > and let's document all of this. Case closed. Implementation needed > > :) > > > > > > > > Simple, and not too hacked implementation: > > > > > > > > Add MBean attribute to URLDeploymentScanner: URLComparator > > > > make default comparator point to: > > org.jboss.deployment.DeploymentSorter > > > > (make this a comparator that does the correct ordering) > > > > in scanDirectory, change: list = sorter.sortURLs(list); > > > > to: if (urlComparator != null) Collections.sort(list, > > urlComparator); > > > > > > > > This allows users unhappy with the ordering scheme to replace it with > > > > their > > > > own Comparator (or simply drop it to remove all ordering). If this > > > > sounds > > > > OK, I am mucking about in that code anyway. Would you like me to > > make > > > > these > > > > changes? > > > > > > > > -Larry > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Jboss-development mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > > > > > > > > _______________________________________________ > > Jboss-development mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-development > > > > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development