File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate dialect

 
arief hidayat
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic