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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:34:17+00:00 2026-06-03T16:34:17+00:00

I am writing a Java Application in which I am connecting to a DB2

  • 0

I am writing a Java Application in which I am connecting to a DB2 database and after getting the connection, I am setting the client info for that connection using the following code:

String clientprogname = "MY PROGRAM";  //Progname
String clientname = "user1";  // The name of the End-User

con.setClientInfo("ApplicationName", clientprogname);
con.setClientInfo("ClientUser", clientname);

con.prepareStatement("SELECT * FROM SYSIBM.SYSDUMMY1 WHERE 0 = 1").executeQuery();
// Execute SQL to force extended client information to be sent to the server

LogFile.log("ApplicationName: " + con.getClientInfo("ApplicationName"));
LogFile.log("ClientUser: " + con.getClientInfo("ClientUser"));

I am aware that I can get the client info using con.getClientInfo, but is the client information stored in the database? According to the Java Documentation, the client information is stored in a suitable location in the database (for example in a special register, session parameter, or system table column). Is there an SQL statement which I can execute to see a list of all open connection?

  • 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-03T16:34:18+00:00Added an answer on June 3, 2026 at 4:34 pm

    According to this you can get it from the special registers, here’s an older topic that references the same thing.

    Edited:

    This is also a nice link that lists a number of useful statements dbForums

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

Sidebar

Related Questions

I'm writing a Java application that runs on Linux (using Sun's JDK). It keeps
I am writing a Java application which can encrypt and consequently decrypt whatever binary
I'm writing a Java application with GUI using Swing. One of the GUI components
So I'm writing a Java application that uses Simple to store data as xml
I am writing a java application that takes schema-bounded XML as input and needs
I am writing a Java application that writes a number of files, and later
I'm writing a bunch of data out from a java application that gets consumed
I am writing an application in java (1.6) using swing. I currently have a
I'm writing a java application which runs on the local machine, it needs to
I'm writing a java application which has to communicate with has to communicate with

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.