Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Hibernate
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Hibernate section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 6th, 2009, 10:29 PM
Authorized User
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default Hibernate Datasource Connection

I am using Spring +hibernate+oracle 11g+websphere AS

for connecting to database which is the best way of doing from hibernate

directly configuring
 <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property>
      <property name="hibernate.connection.url">jdbc:oracle:thin:@MYSYSTEM:1521:ORCL</property>
      <property name="hibernate.connection.username">SYSTEM</property>
      <property name="hibernate.connection.password">password</property>
      <property name="hibernate.connection.pool_size">30</property>
      <property name="dialect">org.hibernate.dialect.OracleDialect</property>
JNDI lookup
<property name="hibernate.connection.datasource">java:comp/env/iam</property>
      <property name="dialect">org.hibernate.dialect.OracleDialect</property>

when i am using jndi lookup from Websphere AS i am getting java out of memory error some times..

suggest me which is good approach..
Old October 9th, 2009, 06:11 AM
Friend of Wrox
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post

As far as i know, Its always best to let the app/web server handle Connection pool.
- Rakesh

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL hibernate connection error kadimijagan Hibernate 2 May 11th, 2009 06:31 AM
DataSource connection with mysql joychand Struts 0 April 24th, 2007 10:19 AM
Object datasource VS DataSource SoftMind BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 July 27th, 2006 10:44 PM
Cannot create connection to datasource boson BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 3 March 16th, 2005 02:28 PM
Unable to get connection, DataSource invalid: prob protozoa JSP Basics 1 August 19th, 2004 02:40 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.