0 Replies Latest reply on Feb 13, 2012 4:00 PM by Juan Carlos Hipolito Castañeda

    how can i connect two differents data base with jndi hibernate

    Juan Carlos Hipolito Castañeda Newbie

      Hello every one, how can i get the connection whit jndi hibernate, I try with the next code in "hibernate.cfg.xml"

      <session-factory name="java:/hibernate/HibernateFactory">

                          <property name="connection.datasource">jdbc/DATA</property>

        <property name="connection.datasource">jdbc/DATATWO</property>


      I get error i create two differentes "hibernate.cfg.xml" and "hibernateTwo.cfg.xml"


      What i missed?

      Help me please, i'm new in hibernate