JBoss Community

how can i connect two differents data base with jndi hibernate

created by Juan Carlos Hipolito Castañeda in Datasource Configuration - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community