Hi guys, I have a small question. I understand that DAOFactory is a nice thing, and it makes sure the right DAOImpl is returned according to your configuration. But do you really need to ALWAYS check your configuration/deployement file to return the right implementation? It is likely that you will be returning always the same thing, since these DATA sources don't change "everyday", and they could as well be HARd coded, or checked with something like a precompiler that will make sure your code is compiled with the right data code, and contains only that one. Any thoughts? Would you make a DAO factory even if you don't anticipate to have dif. sources of the same data? - BTW I have another question if you permit :), when would your factory return a new instance of the DAO each time it's getDAO is called, or rather have a thread safe singeleton DAO implementation?
Thank you for your time. <a href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824401#3824401">View the original post</a> <a href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824401>Reply to the post</a> ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
