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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:49:56+00:00 2026-06-16T04:49:56+00:00

I have a datasource targeted to a cluster with two weblogic managed servers i.e

  • 0

I have a datasource targeted to a cluster with two weblogic managed servers i.e 239.112.112.47:8001 and 239.112.112.48:9001

The datasource has deafult max capacity for the connection pool set to 15.

Thus, I am expection a total of 15*2=30 connections.

However, my client code gets only 15 connections that too on a single server(239.112.112.47:8001) and not on both servers of my cluster.

Below is my code:

public static void main(String ar[])throws Exception
{
InitialContext ic=null;
try{
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
env.put(Context.PROVIDER_URL, 239.112.112.47:8001);
ic = new InitialContext(env);
}
catch(Exception e){
System.out.println("\n\n\t Unable To Get The InitialContext => "+e);
}
Connection con[]=new Connection[100];
try{

for(int i=0;i<100;i++)
{
   DataSource ds=(DataSource)ic.lookup("MyDS");   //Enter your DataSource or MultidataSource JNDI name Here
   con[i]=ds.getConnection();
   System.out.println("\n\n\t GOT CONNECTION con["+i+"]: "+con[i]);
   Thread.sleep(1000);
}
  • 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-16T04:49:57+00:00Added an answer on June 16, 2026 at 4:49 am

    It sounds like you have one of these issues:

    1. Your datasource is targeting a single managed server instead of the cluster
    2. Your cluster has a single member instead of both of the managed servers
    3. Your load balancer is directing traffic to a single node within the cluster
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a listview which has its datasource changed after update of a search
i have datasource which has an sp called for update and been binded to
i have a datasource, which has an insertparameters, one of which whose type is
I have a datasource that I want to bind to a listview that has
One of the columns in my table is DataSource. Datasource can have two values,
I currently have a datasource from a client in the form of XML, this
I have a AS400 datasource. I want to union a select field. This union
In C#.net, I have the following DataSource setup that I am trying to dynamically
I have a datagridview bound to a datasource, column[0] AgencyName is a primary key
I have a non databound DGV (no datasource, etc; rows added manually). To filter

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.