On Fri, 17 Jan 2003 13:59:34 -0600 "Jacob Hookom" <[EMAIL PROTECTED]> wrote: >You might want to look at Castor for XML/JDBC > >The simplest solution is to write an intermediate layer. Struts calls >specialized methods on this layer to handle calls to multiple persistence >services, invisible to your struts code. So you can have a method called >getAllEmployees() that might access a DB, where getAllDepartments() might >access an XML file. It might sound too concrete, but keep in mind that this >intermediate layer is the guts of your application and each method should be >treated like a step in your Use Cases.
Thanks for the suggestion. One of the implementations I've liked is the DatabaseLayer used in the jPetStore app by Clinton Begin over at iBatis.com. It uses a Factory pattern so that your actions work with interfaces while your concrete implementations can access just about anything. I'll have to check out the castor stuff though. I've used their xml databinding packages. jaaron __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>