Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7074505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:03:57+00:00 2026-05-28T06:03:57+00:00

I recently started backend programming with Java servlets to access data for intranet webapps.

  • 0

I recently started backend programming with Java servlets to access data for intranet webapps.

I’ve created a servlet that passes a query name to a stored procedure on the database and then returns the result as a chunk of JSON. I use this from AJAX calls in the webapps. My webapps only have a maximum of about 100 users on them – this number will grow slowly over the next year though.

I would like to use hibernate for connection pooling as opposed to opening and closing a JDBC connection for every AJAX call. But each of the hibernate tutorials I have been through start out with creating POJOs to map the data, with getters and setters. I would’t really use the POJO methods at all – currently I create the JSON from the resultset object with a stringbuilder and don’t really see why I would need to change that.

Basically, I would like to simply change my servlet to call some kind of hibernate connection pool object instead of creating a JDBC connection.

Can I / should I be using hibernate for this purpose (just connection pooling without POJOs)? If so does anyone know a tutorial that just focuses on this? If not should I be using something else for this?

As I said, I am pretty new to server side programming so I may just missing some fundamental concept. Any direction is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:03:58+00:00Added an answer on May 28, 2026 at 6:03 am

    Hibernate is a tool for Object-relational mapping, and as such is good for mapping Java objects to tables. If you want to use JDBC to execute queries and continue using your builder to convert sql resultsets to JSON, you don’t need or want Hibernate, and you don’t need it for connection pools.

    You should be looking at tools like Dbcp or 3cp0 that are focused on providing connection pooling capability rather than Hibernate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently started using Eclipse at work for my Java servlet projects. I've been
Recently started programming Android Java (Eclipse), Im trying to make a simple reader app
I've recently started learning and exploring the basics of GUI programming in Java. Having
I recently started learning networking with sockets in java. So i've created a multiplayer
I recently started using Linux as my primary OS. What are the tools that
I recently started diving into low level OS programming. I am (very slowly) currently
I recently started game programming on the iPhone using Cocos2d and Box2d. So here's
I recently started learning Java and i came across a statement including (ActionEvent e
I have recently started my job as web application backend developer. I am bit
Bear with me. I recently started implementing jquery at work. I created a new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.