2 Replies Latest reply on Apr 23, 2013 8:45 PM by maran selva

    connection two database using two different datasource in seam2.3

    maran selva Newbie

      Hi,

       

             trouble in connecting two database with two different persistence unit.

      i have a page(xhtml) contains two dropdown,

      in the first drop down i need to bring the value from database1 and second dropdown i need to bring the value from database2

       

      compound Property  --- database1

      assays                        --- database2

       

      i have configured two datasource in persistence.xml(refer attachment)

      and managed persistence context in component.xml(refer attachment).

       

      if i comment  any one of the dropdowns in xhtml it is bringing the values seperatly from each database,but if i use both the drop down the second database is not connected.

       

      can any one help me.