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

  • Home
  • SEARCH
  • 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 7765991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:18:10+00:00 2026-06-01T15:18:10+00:00

I am creating a JDBC connection pool resource for GlassFish, using the server’s Admin

  • 0

I am creating a JDBC connection pool resource for GlassFish, using the server’s Admin Console.

One of the fields on the page to create the pool is labeled ‘Resource Type’. This field has four possible values: javax.sql.DataSource, javax.sql.XADataSource, javax.sql.ConnectionPoolDataSource and javax.sql.Driver, but the help text for the Create JDBC connection pool ‘wizard’ does not have much info about the advantages and disadvantages of these choices.

When prompted to pick a resource type which should I choose?

I am going to connect to a local MySQL server. It would be nice to get an explanation of the differences between the choices in the drop-down as well.

enter image description here

  • 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-06-01T15:18:11+00:00Added an answer on June 1, 2026 at 3:18 pm

    Below are the scenarios where you would need each of the resource types listed. Hope this helps.

    DataSource
    DataSource A DataSource object is a factory for Connection objects. When using simple DataSource, appserver uses its own pooling instead of native.

    ConnectionPoolDataSource
    A ConnectionPoolDataSource object is a factory for PooledConnection objects. ConnectionPoolDataSource is used to give access to PooledConnection which implements native pooling by JDBC driver. In this case application server can implement connections pooling using this native interface. Please refer to Java API to know what a PooledConnection is…A ConnectionPoolDataSource can use a third party implementation for pooling – as far as I know for Tomcat, for instance, DBCP connection pooling is used.

    XADataSource
    You need an XADataSource if you want to execute a Distributed Transaction. You should use XADataSource instead of DataSource if the application

    • Uses the Java Transaction API (JTA)
    • Includes multiple database updates within a single transaction
    • Accesses multiple resources, such as a database and the Java Messaging Service (JMS), during a transaction
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone tried creating a WebLogic JDBC connection pool using a TNS Alias instead
I'm using AS400JDBCConnectionPoolDataSource and AS400JDBCConnectionPool in order to create a connection pool inside my
I am creating a Connection object and making jdbc connection in a constructor of
I am currently creating a jdbc connection for every jsp or servlet. How can
How to integrate the common JDBC idiom of creating/receiving a connection, querying the database
i have a jsp page with jdbc connection and on first load it shows
I am creating a simple application in JSP- JDBC for inserting and updating details
Creating a server-side socket will fail if I'm trying to use the same port
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
Creating a simple RPG game, first time using XNA. Trying to get my character

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.