[jboss-user] [Datasource Configuration] - how can i connect two differents data base with jndi hibernate

Juan Carlos Hipolito Castañeda do-not-reply at jboss.com
Mon Feb 13 16:00:09 EST 2012


Juan Carlos Hipolito Castañeda [https://community.jboss.org/people/juank] created the discussion

"how can i connect two differents data base with jndi hibernate"

To view the discussion, visit: https://community.jboss.org/message/716341#716341

--------------------------------------------------------------
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
[https://community.jboss.org/message/716341#716341]

Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120213/132e60a4/attachment.html 


More information about the jboss-user mailing list