I haven't looked at it much or used it at all, but it sounds good.
xPetStore is a WODRA (Write Once, Deploy and Run Anywhere) implementation of Sun PetStore application based on the following opensource tools/framework:
- XDoclet
- Struts
- SiteMesh
If you're writing web applications (and you're using Struts or Webwork) and you're NOT using XDoclet (or one if it's derivatives - i.e. Middlegen), you're wasting your time (IMHO). Of course, I also believe that if you're not using Ant to build your java-based project, you're really wasting your time.
Hmmm, while over at the WebWork site, I stumbled upon this Eclipse + Resin + WebWork + Hibernate tutorial. I don't know if it's such a good idea to call your persistence layer directly from your servlets is it? Shouldn't that be in a Business Delegate - or am I losing focus of KISS and trying to follow too many patterns? Patterns give me more opportunities for Unit Testing. The only way to test this servlet would be something like Cactus, right? As always, to each his own... ;-)
It was a good night, I solved all my computer problems in the last hour! I hope this continues tomorrow when I go into the office - I'd love to figure out all the Hibernate issues I'm having. If I can pull this off (which I think I can), I should be finished with all the architectural hurdles on the project, and the rest will be easy and fun. I'll get to tweak JavaScript and CSS for a better UI, and later tweak Hibernate for a better Session management architecture. I'm hoping for a good week. Now onto how I fixed my issues, in case anyone else has these problems.
To fix my OS X problems, I used Jaguar Cache Cleaner (JCC). This fixed my Finder and Mail problems. After that, I deleted some Safari-related files in my ~/Library
directory and now everything is back to normal. Hallelujah!
My wireless printer server problem was much easier to fix. All I needed to do was leave the ethernet in the little box, set an IP address on the box, and then access it through a browser to configure the wireless stuff. Unplug, shut off the printer, restart everything and I'm feeling the love...
Happy Birthday Russ - even though your birthday isn't until tomorrow here in Denver.
Speaking of Denver, it was an awesome day here - hitting almost 70 degrees in the city! Julie and I took a Abbie on her first hike at 3 Sisters Park. A good time was had by all...
I found that someone else is doing an e-mail to blog project. Probably something to keep our eyes on for GeekBlog and Roller. BTW - does any blogging software support this? Maybe we can sponge some ideas of an existing implementation. My latest idea is to use digital certificates for authentication. Should work, right? Check out digital certificates from Thawte - there's even a link to get your FREE personal email certificate. I'll bite.
Glen Smith has published A Hitchhiker's Guide to Hibernate. This looks like a nice simple intro to Hibernate. This tutorial (IMO) is a great stepping stone to demonstrate how to use XDoclet to do the same thing (it creates the mapping file for you), and also do demonstrate using a ServletFilter and ThreadLocal for obtaining the session. There have been recent postings regarding these techniques to the hibernate-devel mailing list (in case you're interested).
I also found Tom Sedge's explanation of associations on the Hibernate site - looks like I have some reading to do!