• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Hibernate dialect

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using TopLink but when I run my apps on Tomcat 5.5 (netbeans 5.5.1)... it says



I don't use Hibernate at all

Here is my persistence unit


Any enlightenment?

Thanks
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you need to have a Connection Pool. I am sure TopLink comes with a Connection Pool class etc for you. You need to define a connection pool.

No idea why you get a Hibernate error though.

Mark
 
arief hidayat
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
I think you need to have a Connection Pool. I am sure TopLink comes with a Connection Pool class etc for you. You need to define a connection pool.

No idea why you get a Hibernate error though.

Mark



Could you tell me what is the different between using connection pool or not?
I don't really understand on this matter.
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK a Connection pool stores JDBC Connection objects, so an ORM needs a JDBC Connection to connect to the database. The ORM products themselves do not create these Connections or pools, It gets them from a Connection Pool. So the ORM requires you to configure a connection pool. Hibernate for instance, comes with C3PO, which you can configure the pool in the hibernate.cfg.xml.

Unfortunately, I do not know what TopLink comes with, so I can't tell you which Connection Pool implementation it uses.

If you are deploying in say An App Server, then you can create a DataSource and that would use/create a Container created ConnectionPool.

Mark
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic