• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate setting using an application connection pool

 
Raj Ohadi
Ranch Hand
Posts: 316
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below is what I use for hibernate xml. It uses jdbc driver. If I choose to use an a connection pool created inside some application servers like JBOSS, Weblogic. what's the setting I should create ? any sample ?

***************

<property name="hibernate.connection.url">
jdbc racle:thin:@localhost:1521:SID
</property>

<property name="hibernate.connection.driver_class">
oracle.jdbc.driver.OracleDriver
</property>

<property name="hibernate.connection.username">
user
</property>

<property name="hibernate.connection.password">
password
</property>
***************************************
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about

<property name="connection.datasource">java:/comp/env/jdbc/MyDB</property>

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic