The moose likes Other Open Source Projects and the fly likes Hibernate ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "Hibernate ?" Watch "Hibernate ?" New topic
Author

Hibernate ?

Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
We are developping an application available through internet.
Client is an application Swing and to connect to the database i wrote a servlet. I created only 1 connection to the databse.
I want to improve the performance with the database conenction.
When i click 'Show all users', i must wait for a time.
I wanted to use EJB ? What do you think about ? Or Hibernate as there is already a connection pool with Hibernate.
If i use Hibernate then it means i don't need EJB ? is right ?
thanks very much.
Brian Sam-Bodden
author
Greenhorn

Joined: Aug 31, 2004
Posts: 25
It sounds like you will have very few users on you application. The only reason I would use CMP EJBs would be for their transactional capabilities and the caching capabilities. Otherwise I would stick with an ORM tool like Hibernate or OJB.

Hibernate shit with a simple connection pooling algorithm which is not intended for production use. Hibernate also ships with C3P0 and also supports Jakarta's DBCP and Proxool.

With hibernate you can work with POJOs and a simple web container. Unless you need the transactional capabilities of EJBs I would stay away from adding the complexity of a full fledge J2EE server into the mix.

Brian


Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/1590591259/ref=jranch-20" target="_blank" rel="nofollow">Enterprise Java Development on a Budget</a>
Brian Sam-Bodden
author
Greenhorn

Joined: Aug 31, 2004
Posts: 25
...Hibernate sh*t... (boy I'm sounding like Ted Neward now! ;-) Sorry for the typo (two left hands)
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11945
LOL. Brian, you can edit your posts with one of the buttons next to "reply-to", "quote", etc.
That is, unless you want to leave it like that -- it is one of those funnier typos


Author of Test Driven (Manning Publications, 2007) [Blog] [HowToAskQuestionsOnJavaRanch]
 
 
subject: Hibernate ?
 
Threads others viewed
Alter session to set NLS_CALENDAR = 'Persian'
Help choose framework
Database connection in hibernate
Hibernate and Jdbc
Database connectivity in struts 2
developer file tools