2 Replies Latest reply on Aug 19, 2008 5:23 PM by Chris Stewart

    Handling multiple data sources with Seam

    Chris Stewart Newbie

      I'm looking at porting an existing JSF application over to Seam.  My JSF application has 7 data sources it pulls information from using Hibernate.  In some instances, it will search 4 of those data sources sequentially for a record, until it finds what it's looking for.  The other data sources are legacy databases that we need to pull information from.

      My question is, how can I do this in Seam?  Currently, I have a lot of hibernate.cfg.xml files, 2 each (QA and Prod) for each data source.  I have a DataContext class that creates a set of SessionFactory objects using the Hibernate configuration files.  Since I think Seam is mostly annotation based and not XML base, how can I replicate this functionality?