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 7564051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:49:07+00:00 2026-05-30T13:49:07+00:00

For my sins I have to make the web application I’m working on interact

  • 0

For my sins I have to make the web application I’m working on interact with an old MS Access database that is used by one of our legacy applications.

The first problem with Access of course is how to get a connection. After extensive searching I wasn’t able to find any type 3 or 4 driver that I was happy with (everyone that sells them seems to have stopped development years ago) so that has pushed me into using the JDBC-ODBC bridge.

As I’ve not used the bridge for over a decade I banged out a quick bit of code to check everything was working:

sun.jdbc.odbc.ee.DataSource ds = new sun.jdbc.odbc.ee.DataSource();
ds.setDatabaseName("MyDatabase");
Connection conn = ds.getConnection();
PreparedStatement stmt = conn.prepareStatement( "SELECT * FROM MyTable" );
ResultSet rs = stmt.executeQuery();
while( rs.next() ) {
    System.out.println( rs.getString( 1 ) );
}

I decided to use the DataSource as this is closer to how it’ll be used in the final application. The above code runs fine and gives the expected result.

I then set up a JDBC Connection Pool under GlassFish 3.1.1. I set Resource Type to javax.sql.DataSource and gave the Datasource Classname as sun.jdbc.odbc.ee.DataSource. I also set a single property of databaseName=MyDatabase.

When I ping the database through GlassFish I get this error message:

Ping Connection Pool for MyConnectionPool is Failed. Ping failed 
Exception - Connection could not be allocated because: 
[Microsoft][ODBC Microsoft Access Driver] System resource exceeded.

The system.log for GlassFish doesn’t really provide any more information it just reports:

Exception while creating an unpooled [test] connection for pool [ MyConnectionPool ]

and then repeats the error message. I’ve tried changing the pool parameters in GlassFish thinking that it might be an issue with how many connections it’s trying to pool but that didn’t work. Any ideas?

P.S. Moving to MS SQL / MySQL / Other DB is not currently and option 🙂

  • 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-30T13:49:08+00:00Added an answer on May 30, 2026 at 1:49 pm

    No idea what was actually wrong, turning off auto-ping on changes and restarting the system caused it to start working and I’ve not had any problems since.

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

Sidebar

Related Questions

I have an old site with many old sins in it's source and one
I'm not a Notes programmer, however, for my sins, have been working on some
I am on one really big project that was started sins the time of
Hello it has been some time sins i have used Big O notation, so
Basically, I have a page where you search for a term, and the database
I'm working on a legacy COM C++ project that makes use of system hungarian
I have a project that uses GLSL shaders. This project is designed not to
I am working with the Braintree API for .NET to take care of processing
Disclaimer: the following is a sin against XML. That's why I'm trying to change
I didn't see any questions that asked this previously so here goes: Once you

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.