|
Mario Ivankovits made changes - 29/Sep/06 07:27 PM
A utility class which helps to determine packages with shale-tiger annotated classes within.
You simply start this tool using: java -XX:MaxPermSize=99m -cp shale-tiger.jar:WEB-INF/classes:WEB-INF/lib/dependency.jar:.... org.apache.shale.tiger.utils.DumpScanPackages You simply have to add classes to check to the classpath. The tool will produce plenty of warnings due to an incomplete classpath (e.g. if you left out the servlet jar etc), you can add those jars from your container too, or simply ignore it. In case of an OutOfMemory exception simply increase the MaxPermSize parameter. At the end the tool will print out stuff like: Propsed org.apache.shale.tiger.SCAN_PACKAGES configuration: <context-param> <param-name>org.apache.shale.tiger.SCAN_PACKAGES</param-name> <param-value>com.ops.Contact.backings<param-value> </context-param> You can copy/paste this proposal in your web.xml then.
Mario Ivankovits made changes - 01/Oct/06 08:40 AM
Please ignore the DumpScanPackages.diff, there the new file in question is missing.
I've directly added DumpScanPackages.java now.
Mario Ivankovits made changes - 01/Oct/06 08:41 AM
Sometimes I have up to 12-15 seconds of startup time of shale-tiger - looks like it depends on the load of the machine, whereas when using the new scanning stuff startup is always under a second.
It would be great if we could add this to the codebase. Any objections, anything I can do better to make this happen? I will try to review this as soon as I can ... but I'm currently at the AjaxWorld conference in Santa Clara. One good thing about ApacheCon next week. I'll be able to *focus* on Shale and get a lot of stuff done.
Mario, I'm ready to look at this in depth in the next couple of days. Exactly which of the attachments should I pay attention to now?
Hi!
Great, thanks! The files to pay attention to are: * configurable_scan_packages.diff - this is the core of the additional startup scanning stuff * DumpScanPackages.java - is just a helper to print out a proposal for the web.xml configuration by scanning the whole classpath, its optional, you do not need to add it if you just would like to add the startup scanning stuff.
Craig McClanahan made changes - 20/Oct/06 02:45 AM
Fixed in nightly build 20061020, and will also be included in 1.0.4. Thanks for the patch!
Craig McClanahan made changes - 20/Oct/06 02:59 AM
Rahul Akolkar made changes - 23/Jan/07 04:40 PM
Jeff Turner made changes - 09/Aug/07 07:17 AM
Antonio Petrelli made changes - 08/Jan/09 08:57 AM
Antonio Petrelli made changes - 08/Jan/09 09:08 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In case of 3rd party libraries any developer should then be able to figure out the SCAN_PACKAGES configuration string easily.