• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

does hibernate require any container

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm planning to use hibernate in a web application which is meant to run in servlet container.....can i use hibernate with it??.....

or should i go for another application server other than tomcat??
 
author and cow tipper
Posts: 5000
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate doesn't need anything other than a database, a JDBC driver, and a JVM.

My website has a variety of examples, most of which can be run and tested simply from the command line of a JDK (check out my signature links for more info). That's part of the beauty of Hibernate.

To run as a web app, it's as simple as putting the Hibernate jar files in the lib directory of the web applications. That will provide design time linking and deployment linking, although there are other, perhaps more layered strategies, for application packaging. I always run Tomcat as a test server with my Hibernate applications, even if the target environment is WebSphere or WebLogic.

Of course, anything that can run hands free on a JVM can also easily be integrated into web based or J2EE/JEE5 based applications. And as such, you see plenty of web based applications that leverage Hibernate as an ORM tool. But again, it's certainly not needed.

-Cameron McKenzie
[ July 28, 2008: Message edited by: Cameron Wallace McKenzie ]
 
Hey! Wanna see my flashlight? It looks like this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!