This one time, at band camp, Dave Johnson said:

DJ>I've written a simple example application that shows how
DJ>to create a simple web application (a newsfeed aggregator)
DJ>with a pluggable persistence layer. I used the tried
DJ>and true DAO pattern to hide the database access
DJ>mechanism from the rest of the application.
DJ>I implemented the DAO interface with both Hibernate
DJ>and Castor.
DJ>
DJ>I did this to learn:
DJ>
DJ>- What are the drawbacks of hiding powerful persistence
DJ>engine behind a simple DAO interface. What do you loose?
DJ>Will long transaction support work? What about lazy loading?
DJ>
DJ>- What are the differences between and strenghts/weaknesses
DJ>of Castor and Hibernate?
DJ>
DJ>- What is the best way to implement DAO with each of
DJ>the tools.
DJ>
DJ>The code is very simple and (I hope) easy to follow,
DJ>so if you have a chance please take a look. Look at the
DJ>HibeAggregatorDAO and CastorAggregatorDAO implementations
DJ>to see how I used Hiberate and Castor to implement the
DJ>very same DAO. I'd love to get your opinions on the
DJ>above topics.
DJ>
DJ>The readme is here:
DJ>http://sourceforge.net/project/shownotes.php?release_id=125110
DJ>
DJ>The download is here:
DJ>http://sourceforge.net/project/showfiles.php?group_id=47722

Dave,

Thanks for building the application. I'm very curious to take a
look at it.

At this time, I have an odd question. How is the code in the jspf
file used? I see that it is used to determine what type of AggregatorDAO
to use, but I'm not sure how actual Java code is used, so I'm very
curious. I've always used a properties file for this type of thing
where the class type is grabbed by a Broker object to take a separate
path through the app to hand out the proper DAO type. Please explain
how the jspf file contents are used.

Thanks,
Bruce
--

perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to