0 Replies Latest reply on Apr 2, 2013 8:13 AM by bhanu prakash

    insertion of same data different databases !!

    bhanu prakash Newbie

      Hi All ,             We are currently working on a project where we need to maintain multiple databases and insert data in to different DB at same time of action . I used component.xml and i am able to view the data which is present in the other database . But how to connect with that db and insert values in to it and how to pass parameters which writing hql queries  .   Iam using seam , hibernate .

       

       

        Sample Code : 

      @In  Entity Manager em;

        @In  Entity Manager em1; 

      query: public List showData(){ return em1.createquery("from x where 1 = 1 ").getresultlist(); } 

       

       

      Thanks in advance Bhanu Prakash