• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Newbie Conn Pool question

 
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am playing around with hibernate in an attempt to learn it. I would like to create a DAO layer for my portlets and use hibernate versus straight sql. I am using MS SQL Server and Tomcat as an app server. I would like to not use connection pooling through Tomcat. Most examples I have read online use Conn Pooling. Does anyone have a code snippet from hibernate.properties where they are accessing a MS SQL Server DB without using conn pooling?
Thanks.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So do you want "no connection pooling at all" or "no connection pooling through Tomcat"?
 
Andy Hahn
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I am not sure. I think what would work best is to set up a datasource in Tomcat for my application. (I am trying to avoid as much application server setup as possible since I am building a portlet for a very large project). Does a Tomcat datasource automatically create a datasource? What do you recommend?

Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic